What makes an iterator an iterator?

7stud bbxx789_05ss at yahoo.com
Thu Apr 19 17:12:31 EDT 2007


On Apr 19, 5:37 am, Steve Holden <s... at holdenweb.com> wrote:
>
> It's nothing to do with the name lookup. Alex mentioned that to remind
> us that the magic "double-under" names are looked up on the type rather
> than the instance...

P.next()

vs.

type(P).next()

Where is the "double-under" name?




More information about the Python-list mailing list