>>> gen = iterator()
>>> gen.next
<method-wrapper object at 0x009D1B70>
>>> gen.next
<method-wrapper object at 0x009D1BB0>
>>> gen.next
<method-wrapper object at 0x009D1B70>
>>> gen.next
<method-wrapper object at 0x009D1BB0>
>>> gen.next is gen.next
False


What is behind this apparently strange behaviour? (The .next method
seems to alternately bind to two different objects)

Sw.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to