> Hi all, > I am maintaining a project using PyQt and having a > problem with C++ enum. When I pass int values as > arguments to where enum is expected, there is a > TypeError. > For example, the following Python code will cause an > error: > > from qt import * > a = QSizePolicy(1,1,0,0,False) > > -> TypeError: argument 1 of QSizePolicy() has an > invalid type > > I read on this list and found out that the strict enum > checking has been relaxed and then enforced again. > There are too many errors of this type in the code > that I'm maintaining. Is there a way for me to fix > this error without modifying my code?
You could hack your own copy of SIP. > Where can I find > the snapshot of Sip that relaxed strict enum? Not from me. Why not just go back to SIP v4.1.1? Phil _______________________________________________ PyKDE mailing list [email protected] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
