Eryk Sun <eryk...@gmail.com> added the comment:

If I had long paths enabled, then next(os.walk(p, onerror=print)) would not 
have printed the error that I showed in the example and would not have 
immediately raised StopIteration. Instead it would have returned a (dirpath, 
dirnames, filenames) result for directory `p`. Did you repeat the simple 
examples that I showed, exactly as shown, and get a different result?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue46084>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to