BeautifulSoup, what order does .descendants go in?
<p>When using the beautifulsoup <a href="https://www.crummy.com/software/BeautifulSoup/bs4/doc/#descendants" rel="nofollow">soup.descendants</a> iterator, are the tags yielded guaranteed to come back in any particular order? Since the documentation mentions that things are iterated over recursively, I'd guess that things are returned in DFS order, but I'm not sure if this is something I can rely on.</p>