Conditionally implementing __iter__ in new style classes

infidel saint.infidel at gmail.com
Wed Jul 6 12:13:05 EDT 2005


I'm not sure I understand why you would want to.  Just don't define
__iter__ on your newstyle class and you'll get the expected behavior.




More information about the Python-list mailing list