[PyQt] Garbage collection, signals to partial functions

Giovanni Bajo rasky at develer.com
Thu Oct 29 09:36:46 GMT 2009


On Thu, 29 Oct 2009 07:36:54 +0100, Martin Teichmann
<lkb.teichmann at gmail.com> wrote:
> 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. 

... which is why it is better to post testcases that do actually fail (with
an assert) when a mistake is detected :)
-- 
Giovanni Bajo
Develer S.r.l.
http://www.develer.com


More information about the PyQt mailing list