[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] sip: unsupported cast operator
From: Phil Thompson <phil () riverbankcomputing ! com>
Date: 2011-05-15 13:18:52
Message-ID: 5f9b14fa28340bcebacbab8d1826bda8 () localhost
[Download RAW message or body]
On Sun, 8 May 2011 13:49:24 -0700 (PDT), pymab <mabxsi@hotmail.com> wrote:
> Hi,
>
> sip gives me an unssuported error for a 'signed char' cast operator:
>
> "sip: xsi_value.sip:428: Unsupported operator cast"
>
> class CValue
> {
> %TypeHeaderCode
> #include "xsi_value.h"
> %End
>
> public:
> ...
> operator signed char () const;
> ...
> };
>
> Is it a limitation or it's by design ?
There is no Python equivalent.
> What would be the workaround if any ?
Use the int() cast instead.
Phil
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic