Re: [Python-Dev] Proposal to revert r54204 (splitext change)

2007-03-19 Thread Taro
On Windows it's correct that splitext(".txt")[1] == splitext("foo.txt")[1] and an implementation in which this is not true would be considered buggy. On *ix it's correct that splitext(".txt")[1] != splitext("foo.txt")[1] and the current behaviour is considered buggy. Since programmer expectations

Re: [Python-Dev] [Python-3000] Iterators for dict keys , values, and items == annoying :)

2006-03-31 Thread Taro Ogawa
Taro Ogawa gmail.com> writes: > Nick Coghlan gmail.com> writes: > > There are three big use cases: > > ... > > ... Apologies - this was posted via gmane and the post I responded to appeared in the gmane.comp.python.devel.3000 tree... I'll repost there (and che

Re: [Python-Dev] [Python-3000] Iterators for dict keys, values, and items == annoying :)

2006-03-30 Thread Taro Ogawa
Nick Coghlan gmail.com> writes: > There are three big use cases: >dict.keys >dict.values >dict.items > Currently these all return lists, which may be expensive in terms of copying. > They all have iter* variants which while memory efficient, are far less > convenient to work with. Is