[Cython] make extension type accesible from python?

Neal Becker ndbecker2 at gmail.com
Mon Mar 3 19:01:25 CET 2008


Stefan Behnel wrote:

> Neal Becker wrote:
> [real problem stripped]
>> I assume there is some way to make extension types that can be used from
>> python?  Of course, I'd want to be able to add other methods, so that,
>> for example, intvec can be constructed and manipulated from python.
> 
> Yes, wrapping it in a Python extension type is the right approach here.
> 
> 
>> Any simple examples I could look at?
> 
> The Pyrex docs, for example:
> 
> http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/
>
http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/version/Doc/Manual/extension_types.html
> 
> Stefan
I've been studying these, but I haven't seen my question addressed.  Are
there any examples I could look at?



More information about the Cython-dev mailing list