Using classes in python extensions...
I'm sure that this is a silly question, but I'm going ask it anyways... ;) How do I instantiate/use classes inside of a python extension from zope? Thanks. Rob McPeak Python programmer reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')),'')
Robert McPeak wrote at 2003-7-21 10:49 -0700:
I'm sure that this is a silly question, but I'm going ask it anyways... ;)
How do I instantiate/use classes inside of a python extension from zope?
In the same way, you do it always :-) from module import class_ class MyClass(class_):.... # use as base class attr= class_.attr # access to class attribute instance= class_(...) # instantiation For further information, please read the Zope Developer Guide. Dieter
participants (2)
-
Dieter Maurer -
Robert McPeak