[issue13375] Provide a namedtuple style interface for os.walk values
Nick Coghlan
report at bugs.python.org
Wed Nov 9 22:25:07 CET 2011
Nick Coghlan <ncoghlan at gmail.com> added the comment:
Like any named tuple, the benefits lie in the better repr, and the fact
that if you only want some fields you don't have to unpack the whole tuple.
It's also easier to write variant APIs that add additional fields
accessible only by name.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13375>
_______________________________________
More information about the Python-bugs-list
mailing list