[PyKDE] False Attribute Errors

Phil Thompson phil at riverbankcomputing.co.uk
Mon Feb 7 13:24:46 GMT 2005


> On Monday 07 February 2005 07:36 am, Phil Thompson wrote:
>> I think it's a SIP bug - you'll probably find that the type of
>> mywidget is not
>> what you expect when the AttributeError is raised. It's the one thing
>> that's
>> holding up the release of SIP 4.2.
>>
>> Phil
>>
>
> Thanks Phil, I was beginning to think I was losing (even more of) my
> marbles trying to track this problem down.
>
> I would like to carry on using the current snapshots, though. I was
> beginning to think this problem might only affect Qt objects that were
> passed via signal handlers. Is this likely? If it was, I might be able
> to work around it somehow as I'm not using many handlers like that at
> the moment.

Unlikely - I suspect the cause is incorrect re-use of entries in the
internal map that associates C++ pointers with the corresponding Python
object. But I might be wrong.

Phil




More information about the PyQt mailing list