API class creation

Peter Maas peter at somewhere.com
Thu Aug 4 05:05:32 EDT 2005


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 = aModule.c()

-- 
-------------------------------------------------------------------
Peter Maas,  M+R Infosysteme,  D-52070 Aachen,  Tel +49-241-93878-0
E-mail 'cGV0ZXIubWFhc0BtcGx1c3IuZGU=\n'.decode('base64')
-------------------------------------------------------------------



More information about the Python-list mailing list