[PyQt] SIP Question
Phil Thompson
phil at riverbankcomputing.com
Sat Nov 20 14:40:07 GMT 2010
On Sat, 20 Nov 2010 15:14:17 +0100, Giovanni Bajo <rasky at develer.com>
wrote:
> On Sat, 20 Nov 2010 12:20:53 +0000, Phil Thompson
> <phil at riverbankcomputing.com> wrote:
>> On Sat, 20 Nov 2010 02:14:55 -0800, Robin Dunn <robin at alldunn.com>
> 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
More information about the PyQt
mailing list