Writting extension classes with PythonC

Rainer Deyke root at rainerdeyke.com
Fri Sep 15 21:45:30 CEST 2000


"kFactor" <kfactor at my-deja.com> wrote in message
news:8ptqph$dqt$1 at nnrp1.deja.com...
> Hi all
>
> I recently made a simple C extension type based on "PyTypeObject" but I
> get a "TypeError: base is not a class object" when I try to derive a
> new class from it, and I think I read somewhere that the C API does not
> allow the creation of new classes. Is this true ?
>
> Has anyone succeded in creating pure python classes (i.e. that can be
> used as base classes) with the C API ?

Not without PyRun_SimpleString or similar. :-)


--
Rainer Deyke (root at rainerdeyke.com)
Shareware computer games           -           http://rainerdeyke.com
"In ihren Reihen zu stehen heisst unter Feinden zu kaempfen" - Abigor





More information about the Python-list mailing list