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 socketpair
Recipients docs@python, socketpair
Date 2011-09-13.13:02:10
SpamBayes Score 2.0299858e-08
Marked as misclassified No
Message-id <1315918932.02.0.810529185276.issue12970@psf.upfronthosting.co.za>
In-reply-to
Content
Consider code:

for (root, dirs, nondirs) in os.walk(path, followlinks=False):
    print (nondirs)

This code will not print symlinks that refer to some dir. I think it is the bug.

In other words: If followlinks is True, we should consider some symlinks as dirs. If not, any symlink is the non-dir.

Patch included.

Also, please fix documentation about this nuance.
History
Date User Action Args
2011-09-13 13:02:12socketpairsetrecipients: + socketpair, docs@python
2011-09-13 13:02:12socketpairsetmessageid: <1315918932.02.0.810529185276.issue12970@psf.upfronthosting.co.za>
2011-09-13 13:02:11socketpairlinkissue12970 messages
2011-09-13 13:02:11socketpaircreate