[PyKDE] Sip wishlist item: Parameter typechecking enhancement
Phil Thompson
phil at riverbankcomputing.co.uk
Mon Jul 18 08:15:51 BST 2005
>
>> Ideally, we would be able to do some kind of annotation
>> that the parameter is Foo, but should be passed to the
>> PyObject version of the constructor:
>>
>> class Bar
>> {
>> public:
>> Bar(Foo & /PyObject/);
>> ...
>> }
>
> Hello all,
>
> In our integration of Python with C++ we're sometimes
> doing python reference counting integrated into our
> native C++ data structures. Is what we're doing
> relatively unusual, compared to the majority of
> PyQt/sip based applications?
I'm not clear what it is you are really doing, but you can specify
something similar...
Bar(SIP_PYOBJECT) [(Foo &)];
...but you still might have to provide %MethodCode.
Phil
More information about the PyQt
mailing list