New submission from Nick Coghlan <ncogh...@gmail.com>: The 3-tuple values yielded by os.walk could be made easier to work with in some use cases by offering a namedtuple style interface (similar to what is done with sys.float_info).
for dirinfo in os.walk(base_dir): print(dirinfo.path) print(dirinfo.subdirs) print(dirinfo.files) ---------- messages: 147334 nosy: ncoghlan priority: normal severity: normal status: open title: Provide a namedtuple style interface for os.walk values _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue13375> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com