[PyQt] Garbage collection, signals to partial functions

Martin Teichmann lkb.teichmann at gmail.com
Thu Oct 29 06:36:54 GMT 2009


Hi List,

well, apparently I wasn't clear enough.

> This seems to work for me too.

Says Lukas, then showing

> lukas at laptop ~  $  python gb.py
> None <__main__.A object at 0x7f9baff6ef30> <functools.partial object at
> 0x7f9baa5f3ba8> <bound method A.f of <__main__.A object at 0x7f9baff6ef30>>
> None <__main__.A object at 0x7f9baff6ef30> <functools.partial object at
> 0x7f9baa5f3ba8> <bound method A.f of <__main__.A object at 0x7f9baff6ef30>>
> 2 []

But that's exactly the problem. It should give
None <something> <something> (or None None None, dunno how good
reference counting should work)
None None None
(and then something really weird, since all objects are gone)

I'll try with latest snapshot, as hinted by Phil.

Greetings

Martin



More information about the PyQt mailing list