[PyQt] Sip iterator question

David Boddie dboddie at trolltech.com
Tue Sep 1 13:16:26 BST 2009


On Tue Sep 1 13:01:14 BST 2009, Phil Thompson wrote:

> Tonight's snapshot will have support for __iter__ and __next__.

Cool. :-)

> Note that it's __next__ (and not next) even for Python v2.

Though, curiously, next() appears to work, which is why I didn't notice that.
It's even in the tutorial:

  http://docs.python.org/tutorial/classes.html#iterators

David


More information about the PyQt mailing list