[PyQt] changing to qlist to use PyIter_Next instead of assuming a python list

Phil Thompson phil at riverbankcomputing.com
Thu Aug 14 22:33:42 BST 2008


On Wed, 13 Aug 2008 20:56:04 -0700, "Erick Tryzelaar"
<idadesub at users.sourceforge.net> wrote:
> I've got a case where I'd like to pass in a tuple to a function that
> accepts a QList. Unfortunately, PyQt4 assumes that it's getting a
> list, and will error out with an invalid type being passed in. Would
> it be possible to use PyObject_GetIter/PyIter_Next to walk over the
> items?

The current version of PyQt will accept a sequence rather than a list.

For some reason I didn't mention this in the ChangeLog, the NEWS file or
the documentation.

Phil



More information about the PyQt mailing list