python segfaulting, MemoryError (PyQt)

Diez B. Roggisch deets at nospam.web.de
Tue Apr 28 09:50:09 EDT 2009


Phil Thompson wrote:

> On Tue, 28 Apr 2009 11:18:31 +0200, "Diez B. Roggisch"
> <deets at nospam.web.de>
> wrote:
>>>> As the documentation of pyqt clearly states, connecting signals doesn't
>>>> increment the refcount on a passed slot, thus
>>>>   you need to keep a reference to your slots around.
>>> 
>>> But it does increase the refcount for lambda slots.
>> 
>> Has that changed? It has been a while, but I've been bitten by this
> before,
>> so I was pretty sure about my answer.
> 
> Support for lambda slots was add in PyQt v4.1.1 (released December 2006).

Unfortunately after I had the chance to play with PyQt for the last time.
Thanks for clarifying!

Diez



More information about the Python-list mailing list