
April 22, 2008
12:12 a.m.
On Mon, Apr 21, 2008 at 4:59 PM, kirby urner <kirby.urner@gmail.com> wrote: << SNIP >>
The reasoning here (as I understood it) is thedict is an iterable and so has a __next__, meaning we don't need to flag it as anything special with the keys() modifier, i.e. stick with a more generic syntax to where the reader is just thinking "iterable" and not "dictionary" per se.
Note that in 2.x there's no __next__ method per se i.e. no under-under "rib" (special name). This changed with PEP 3114: http://www.python.org/dev/peps/pep-3114/ Kirby