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 palaviv
Recipients loewis, palaviv, random832, serhiy.storchaka
Date 2016-04-20.20:35:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1461184503.26.0.00172424656857.issue26781@psf.upfronthosting.co.za>
In-reply-to
Content
I am not sure about the wide use of this feature but I do think this is a nice feature to add to os.walk. I can see how you can implement is_too_deep by counting the number of separators in the path. However I don't think it is trivial to do that. In addition doing the same when topdown is False will not work.
As for the other limitations you suggested I think they are less trivial then limiting the recursion depth.

As for the "symlink infinite loop" I agree that it will be better to do that by tracking the paths we have already visited but avoiding infinite loop is just a bonus that you get from this feature.
History
Date User Action Args
2016-04-20 20:35:03palavivsetrecipients: + palaviv, loewis, serhiy.storchaka, random832
2016-04-20 20:35:03palavivsetmessageid: <1461184503.26.0.00172424656857.issue26781@psf.upfronthosting.co.za>
2016-04-20 20:35:03palavivlinkissue26781 messages
2016-04-20 20:35:03palavivcreate