This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author zbysz
Recipients docs@python, patrick.vrijlandt, rosslagerwall, zbysz
Date 2012-01-16.14:34:45
SpamBayes Score 1.8264805e-05
Marked as misclassified No
Message-id <1326724486.65.0.853796969906.issue13779@psf.upfronthosting.co.za>
In-reply-to
Content
Hi,
I think that the documentation is pretty clear ("[if topdown=False] ...  the directories in dirnames have already been generated by the time dirnames itself is generated"). And such behaviour is what one would expect, since it is the result of the simplest implementation (listdir(), yield <subdir>, yield <subdir>, yeild <subdir>, yeild <dir>).

I don't think that the implementation will be changed, since it is pretty to do listdir() yourself if needed, and it would make the function slower for the common use case.

Improving the documentation is always possible, what sentence would you see added (what would make the behaviour clearer to you?) ?
History
Date User Action Args
2012-01-16 14:34:46zbyszsetrecipients: + zbysz, docs@python, rosslagerwall, patrick.vrijlandt
2012-01-16 14:34:46zbyszsetmessageid: <1326724486.65.0.853796969906.issue13779@psf.upfronthosting.co.za>
2012-01-16 14:34:46zbyszlinkissue13779 messages
2012-01-16 14:34:45zbyszcreate