[PyQt] Slot lookup fails when inheritance depth is larger than one

Matt Newell newellm at blur.com
Wed Jan 28 15:56:19 GMT 2015


I first discovered this with comparison not working as 
expected with a wrapped type.  The __eq__ slot lookup 
was failing because sip only looks at the 
sipClassTypeDef and the direct parent.  Neither contain 
slots because they are defined in the grandparent.

Attached is a patch that implements a depth first 
recursive algorithm for slot lookup, which fixes the 
problem for me.

Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20150128/de010acd/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: slot_lookup.patch
Type: text/x-patch
Size: 2790 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20150128/de010acd/attachment.bin>


More information about the PyQt mailing list