Message143965
| 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:12 | socketpair | set | recipients:
+ socketpair, docs@python |
| 2011年09月13日 13:02:12 | socketpair | set | messageid: <1315918932.02.0.810529185276.issue12970@psf.upfronthosting.co.za> |
| 2011年09月13日 13:02:11 | socketpair | link | issue12970 messages |
| 2011年09月13日 13:02:11 | socketpair | create |
|