[issue26545] os.walk is limited by python's recursion limit

2016-06-10 Thread Sergey Chvalyuk
Sergey Chvalyuk added the comment: 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 lin

[issue26545] os.walk is limited by python's recursion limit

2016-03-20 Thread Elena Oat
Elena Oat added the comment: I've actually tried to test the recursion limit on my Mac OS X. It seems that I cannot create any subdirectories after around 500 subdir depth. I guess it's related to the allowed path length (<1024 chars?). -- nosy: +Elena.Oat

[issue26545] os.walk is limited by python's recursion limit

2016-03-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: I think the code should be left as-is (we've used some variation of recursion for walking a very long time with no reported real-world problems). Perhaps a documentation note can be added to the effect that the there is a recursion limit and that it can be

[issue26545] os.walk is limited by python's recursion limit

2016-03-11 Thread Thomas Waldmann
Thomas Waldmann added the comment: Note: similar issues can be seen in other stdlib recursive filesystem-related functions also. -- ___ Python tracker ___ __

[issue26545] os.walk is limited by python's recursion limit

2016-03-11 Thread Thomas Waldmann
New submission from Thomas Waldmann: os.walk calls itself recursively and that limits the directory depth it can "walk" into. On Linux, one can create directory hierarchies deeper than that. For some more details see there: https://github.com/borgbackup/borg/issues/380 -- components: