[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: SIP: MappedType with a PyInt annotation
From: Phil Thompson <phil () riverbankcomputing ! com>
Date: 2022-03-24 9:05:37
Message-ID: e99e1f744df920ef6409c00a1605303c () riverbankcomputing ! com
[Download RAW message or body]
On 23/03/2022 14:29, Marian Thomsen wrote:
> Hello,
>
> I'm searching for a way to use
>
>
> typedef unsigned char ASN1T_PosPillar /PyInt/;
>
>
> within a mapped type, e.g. when using the following vector
>
> typedef std::vector<ASN1T_PosPillar*> ASN1T_PositionOfPillars;
>
>
>
> The problem seems to be the /PyInt/ annotation. Sip does not seem to
> recognize
>
>
> %MappedType std::vector<unsigned char *>
>
> with it.
>
> I would be grateful for a hint.
>
>
> Regards
>
> Marian
The annotation is used to generate the Python calls to convert the C++
type to the correct type of Python object. In the context of a mapped
type you are providing that code so it's up to your code to do the right
thing (ie. convert to a Python int object rather than a str object).
Phil
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic