[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:



Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

More information about the Cplusplus-sig mailing list