On Sat, May 12, 2012 at 10:51 AM, Tres Seaver <tseaver at palladion.com> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 05/12/2012 08:04 AM, Nick Coghlan wrote: >> On Sat, May 12, 2012 at 12:40 PM, Eric Snow >> <ericsnowcurrently at gmail.com> wrote: >>> If anyone has strong feelings for item-access over >>> attribute-access, please elaborate. I'm just not seeing it as that >>> important and would rather finish up the PEP as simply as possible. >> >> I object to adding a new type to the stdlib just for this PEP. Since >> iterating over the keys is significantly more useful than iterating >> over the values, that suggests a dictionary as the most appropriate >> type. > > Why would anyone want to iterate over either of them? Nick gave a pretty good example [1]. I just don't think it's necessary for the PEP. -eric [1] http://mail.python.org/pipermail/python-dev/2012-May/119412.html
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4