Native class methods

Diez B. Roggisch deets at nospam.web.de
Tue Oct 9 17:25:13 CEST 2007


Stefan Arentz wrote:

> 
> Is there an easy way to implement a specific method of a Python class
> in C? Like a native method in Java? I would really like to do the
> majority of my class code in Python and just do one or two methods
> in C.

ctypes or subclassing C-implemented classes.

Diez



More information about the Python-list mailing list