Writting extension classes with PythonC
Rainer Deyke
root at rainerdeyke.com
Fri Sep 15 15:45:30 EDT 2000
More information about the Python-list mailing list
Fri Sep 15 15:45:30 EDT 2000
- Previous message (by thread): Writting extension classes with PythonC
- Next message (by thread): Writting extension classes with PythonC
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"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
- Previous message (by thread): Writting extension classes with PythonC
- Next message (by thread): Writting extension classes with PythonC
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list