[issue28975] os.walk generator giving inconsistent results
Eric V. Smith
report at bugs.python.org
Wed Dec 14 17:19:52 EST 2016
Eric V. Smith added the comment:
Assuming Path is pathlib.Path, this is equivalent to the difference between:
>>> list(os.walk('/tmp'))
[('/tmp', <other-stuff ...>
and:
>>> list(os.walk('/tmp/'))
[('/tmp/', <other-stuff ...>
Because:
>>> pathlib.Path('/tmp')
PosixPath('/tmp')
>>> pathlib.Path('/tmp/')
PosixPath('/tmp')
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28975>
_______________________________________
More information about the Python-bugs-list
mailing list