[C++-sig] deriving in python from a C++ base class
Ralf W. Grosse-Kunstleve
rwgk at yahoo.com
Wed Jul 2 04:47:30 CEST 2003
--- Stefan Seefeld <seefeld at sympatico.ca> wrote:
> class MyWorld(World):
> def __init__(self):
> self.set('hi there')
> print self.greet()
I think you have to call World.__init__() before you can use the instance.
Here is more information:
http://www.boost.org/libs/python/doc/PyConDC_2003/bpl.html#inheritance
Ralf
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
More information about the Cplusplus-sig
mailing list