[Edu-sig] Considering Idioms
kirby urner
kirby.urner at gmail.com
Tue Apr 22 02:12:04 CEST 2008
On Mon, Apr 21, 2008 at 4:59 PM, kirby urner <kirby.urner at 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
More information about the Edu-sig
mailing list