Re: API class creation

2005-08-05 Thread kman3048
Thanks, that helped a lot. Anybody who wants to attempt the same might find the source code tree of Python i.e. file src/Modules/cdmodule.c helpful. --Matt Daniel Dittmar wrote: > kman3048 wrote: > > Hello, > > > > as a relative newcomer to Python API programming I've got a problem: > > > > To

Re: API class creation

2005-08-04 Thread Daniel Dittmar
kman3048 wrote: > Hello, > > as a relative newcomer to Python API programming I've got a problem: > > To extend Python: > - there is an API C call to create a module > - there is also a API C call to create a method > - there is an API C call to create a Class instance > > Now, I need to create

Re: API class creation

2005-08-04 Thread Peter Maas
kman3048 schrieb: > Now, I need to create a Class and fill it with Methods and Variables. > There are means to create (and attache) methods and variables. > However, I have not found how to create a Class within a Module. Or do import aModule c = aClassGenerator() setattr(aModule,'c',c) ci = aMo

API class creation

2005-08-04 Thread kman3048
Hello, as a relative newcomer to Python API programming I've got a problem: To extend Python: - there is an API C call to create a module - there is also a API C call to create a method - there is an API C call to create a Class instance Now, I need to create a Class and fill it with Methods an