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 Sergey Chvalyuk
Recipients Elena.Oat, Sergey Chvalyuk, Thomas.Waldmann, docs@python, rhettinger
Date 2016-06-10.11:56:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1465559772.94.0.46339066849.issue26545@psf.upfronthosting.co.za>
In-reply-to
Content
There is another limitation with os.walk
it also cannot go very deep inside tree because of scandir can throw 
OSError(36, 'File name too long')

I have wrote tests for both cases:

https://gist.github.com/grubberr/3367f1d605e292103b576a17a46ef3c3

tested on linux only

on MacOS it throw 'File name too long' for 1-st test too
set sys.settrecursionlimit to lower values
History
Date User Action Args
2016-06-10 11:56:13Sergey Chvalyuksetrecipients: + Sergey Chvalyuk, rhettinger, docs@python, Thomas.Waldmann, Elena.Oat
2016-06-10 11:56:12Sergey Chvalyuksetmessageid: <1465559772.94.0.46339066849.issue26545@psf.upfronthosting.co.za>
2016-06-10 11:56:12Sergey Chvalyuklinkissue26545 messages
2016-06-10 11:56:12Sergey Chvalyukcreate