On Sat, 20 Nov 2010 15:14:17 +0100, Giovanni Bajo <[email protected]>
wrote:
> On Sat, 20 Nov 2010 12:20:53 +0000, Phil Thompson
> <[email protected]> wrote:
>> On Sat, 20 Nov 2010 02:14:55 -0800, Robin Dunn <[email protected]>
> wrote:
>>> Is there a way to get SIP to treat an "unsigned char" as a number
> rather
>> 
>>> than as a string of length 1?  Doing something like a MappedType for a

>>> "byte" typedef feels like overkill, especially for a POD type.
>> 
>> No, but should be able to. I'll add a /PyInt/ argument annotation.
> 
> How is this different from declaring the argument as "unsigned int" in
the
> SIP file?

No difference, unless you already have an overload with that signature. It
will be consistent with the way short/unsigned short are handled.

> Will it check and raise a Python exception in case of overflow?

No.

Phil
_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to