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

Sergey Chvalyuk report at bugs.python.org
Fri Jun 10 07:56:13 EDT 2016

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:


tested on linux only

on MacOS it throw 'File name too long' for 1-st test too
set sys.settrecursionlimit to lower values

nosy: +Sergey Chvalyuk

Python tracker <report at bugs.python.org>

More information about the docs mailing list