Making Extensions?

David Abrahams abrahams at mediaone.net
Tue Sep 19 23:17:43 EDT 2000


"Samuel A. Falvo II" <kc5tja at garnet.armored.net> wrote in message
news:slrn8sg5qv.qq4.kc5tja at garnet.armored.net...
> I am in the process of making an extension class for Python 1.5.2 (because
> that's what we have, and we don't want to upgrade until our product is
> finished; deal with it!  We'll upgrade to 2.0 when it gets out of beta).
>
> The problem is I want to make a new "type" under Python.  How the bloody
> heck do I do this in C?  I've got tutorials that indicates how to make a
> Python extension, but not an extension *type* (that is, the ability to
> instantiate an object with methods).

Take a look at http://people.ne.mediaone.net/abrahams/downloads/py_cpp.html.
This might make your life easier. Let me know ;-)




More information about the Python-list mailing list