> > It is said that the object has a NULL-Pointer when I try to debug it?
> what object?
the python one 'myNewPyType'
Sorry, I forgot to change:
PySDLXMLNodeType = PyMyType
..above the corrections
// == PyMyExtention.c =
.
:
typedef struct
I called a own python type 'PyType' with a c function and returned it
into my python programm - there it fault.
It is said that the object has a NULL-Pointer when I try to debug it?
Here are the importent snips from my code:
// == test.py
k like?
Jeremy Moles wrote:
> You can use Py_BuildValue for most what you're probably going to need.
>
> http://docs.python.org/api/arg-parsing.html
>
> On Thu, 2005-09-29 at 15:39 +0200, elho wrote:
>
>>I used the examples from the "Extending and Embedding the
I used the examples from the "Extending and Embedding the Python
Interpreter" tutorial and this works. I can use my types with python.
But I do not know how to creat my own Python variable in an python
extending c-code. What will I have to creat this and return it to my
python programm?
--
http
I found serveral tool for using C++ as extended languate in python - but
what's the best / easiest to use?
With C I used wrappy - not sure if it's the wright name, it's included
since Python 1.6 and it ist pretty ease to use. You know an example with
this util for C++ or isn't it possible for C