Boost logo

Boost :

From: Ivan A. Vigasin (vig_at_[hidden])
Date: 2001-11-14 05:09:15


On Tue, 13 Nov 2001, David Abrahams wrote:

Python 2.1 (#1, Aug 8 2001, 19:56:07)
[GCC 2.95.3 20010315 (release)] on sunos5
Type "copyright", "credits" or "license" for more information.
>>> import sorbit
>>>
>>> class Base:
... def __init__(self):
... pass
...
>>> class MyClass(sorbit.Connect, Base):
... __init_Base_ = Base.__init__
... def __init__(self):
... sorbit.Connect.__init__(self)
... self.__init_Base_()
...
>>> c=MyClass()
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
    File "<stdin>", line 5, in __init__
    TypeError: unbound method __init__() must be called with instance as first argument

;((

Maybe result depends on python's or boost's version?

Regards, Ivan <vig_at_[hidden]>
ICQ: 22181170


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk