[PyKDE] unsigned longs returned by functions and SIP
claus at slac.stanford.edu
Tue Mar 9 05:14:00 GMT 2004
How do I handle _unsigned_ longs returned by functions I want to expose to Python using SIP? When they are greater than sys.maxint I get:
FutureWarning: %u/%o/%x/%X of negative int will return a signed string in Python 2.4 and up
Python 2.3.3, SIP 3.10 (3.10-171).
I could provide %MethodCode that uses PyLong_FromUnsignedLong() instead of the PyInt_FromLong() call SIP uses, but maybe SIP can already do that for me if I knew how to ask it.
More information about the PyQt