Re: return (PyObject*)myPyType; ...segmentation fault!

2005-09-30 Thread elho
> > 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

return (PyObject*)myPyType; ...segmentation fault!

2005-09-30 Thread elho
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

Re: return own type from Python extention?

2005-09-29 Thread elho
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

return own type from Python extention?

2005-09-29 Thread elho
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

Extended Language c++ in pyhton

2005-09-01 Thread elho
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