Creating a new type with an extension module

Uwe Zessin zessin at my-deja.com
Mon Jun 21 11:40:10 EDT 1999


In article <Ctp*vl52n at news.chiark.greenend.org.uk>,
  Sion Arrowsmith <siona at chiark.greenend.org.uk> wrote:
> Is there any documentation anywhere on how to go about writing an
> extension which implements a new type? The extending/embedding
> tutorial give me, very quickly and painlessly, a module with
> functions, but I could really do with them being object methods.
> http://www.python.org/doc/current/api/newTypes.html is unhelpful
> in the extreme -- do I have to resort to reading source?

I am not sure if this is what you are after, but I have found XXMODULE.C
+ XXOBJECT.C very helpful as small examples. I was able to easily turn
them into what I wanted.

--
Uwe Zessin


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.




More information about the Python-list mailing list