[issue13375] Provide a namedtuple style interface for os.walk values
Benjamin Peterson
report at bugs.python.org
Wed Nov 9 20:03:41 CET 2011
Benjamin Peterson <benjamin at python.org> added the comment:
Perhaps Raymond has a different view, but I don't this patch makes anything more clear. There's only three things to remember and its convenient to unpack it in the loop like
for path, dirs, files in os.walk(somewhere):
...
----------
nosy: +benjamin.peterson, rhettinger
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13375>
_______________________________________
More information about the Python-bugs-list
mailing list