[issue26860] Make os.walk and os.fwalk yield namedtuple instead of tuple

2017-04-10 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pytho

[issue26860] Make os.walk and os.fwalk yield namedtuple instead of tuple

2017-04-09 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- Removed message: http://bugs.python.org/msg291388 ___ Python tracker ___ ___ Python-bugs-list mailin

[issue26860] Make os.walk and os.fwalk yield namedtuple instead of tuple

2017-04-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: There doesn't seem to be a consensus that the proposal is a net win. Serhiy made a persuasive argument that the added complexity isn't worth it. I'll leave this open for a day or two so that anyone else can make their case. Otherwise, I'll mark this as cl

[issue26860] Make os.walk and os.fwalk yield namedtuple instead of tuple

2017-04-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: There doesn't seem to be a consensus that the proposal is a net win. Serhiy make a persuasive argument that the added complexity isn't worth it. I'll leave this open for a day or two for anyone else to make their case. I'll make this add closed.

[issue26860] Make os.walk and os.fwalk yield namedtuple instead of tuple

2017-04-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: s/at least/at most/ -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue26860] Make os.walk and os.fwalk yield namedtuple instead of tuple

2017-04-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: namedtuple's attribute access was optimized in recent years. In 3.7 it is 30% faster than in 3.4. So now it is only 3x times slower compared to a plain tuple. On other hand, os.walk() and os.fwalk() was optimized too. In 3.7 they are up to 3.5x times faster

[issue26860] Make os.walk and os.fwalk yield namedtuple instead of tuple

2017-04-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: I would expect that the field access time is inconsequential compared to just about every other aspect of os.walk(). -- ___ Python tracker _

[issue26860] Make os.walk and os.fwalk yield namedtuple instead of tuple

2017-04-08 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Should we have concerns about performances? Accessing a namedtuple value is almost 4x times slower compared to a plain tuple [1] and os.walk() may iterate hundreds of times. http://stackoverflow.com/questions/2646157/what-is-the-fastest-to-access-struct-lik

[issue26860] Make os.walk and os.fwalk yield namedtuple instead of tuple

2016-05-04 Thread ppperry
Changes by ppperry : -- title: os.walk and os.fwalk yield namedtuple instead of tuple -> Make os.walk and os.fwalk yield namedtuple instead of tuple ___ Python tracker ___ _