Question about generators.

kiwwisk at gmail.com kiwwisk at gmail.com
Mon Jan 30 14:22:08 EST 2006


Thanks for reply :)
I'm little sceptic about this code:
>>> a = gen1()
>>> a.gi_frame.f_code.co_name
'gen1'

will it be compatible with Python 2.3, 2.4, 2.5+ and future versions?
Seems very internal and subject of future change.

A.




More information about the Python-list mailing list