Creating custom Python objects from C code
Aahz
aahz at pythoncraft.com
Thu Jan 27 17:47:54 EST 2011
In article <mailman.537.1294244829.6505.python-list at python.org>,
Eric Frederich <eric.frederich at gmail.com> wrote:
>
>I have read through all the documentation here:
>
> http://docs.python.org/extending/newtypes.html
>
>I have not seen any documentation anywhere else explaining how to
>create custom defined objects from C. I have this need to create
>custom objects from C and pass them as arguments to a function call.
You should definitely investigate Cython, but if you really want to roll
your own, look in the examples inside the Python source itself.
--
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
"All problems in computer science can be solved by another level of
indirection." --Butler Lampson
More information about the Python-list
mailing list