[PyQt] SIP Question

Giovanni Bajo rasky at develer.com
Sat Nov 20 14:14:17 GMT 2010


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? Will it check and raise a Python exception in case of overflow?
-- 
Giovanni Bajo   ::  rasky at develer.com
Develer S.r.l.  ::  http://www.develer.com

My Blog: http://giovanni.bajo.it


More information about the PyQt mailing list