Wednesday, March 21, 2012

I just wanted to see what would happen...

>>> class Foo:
...    def __init__(self):
...       self.info = "I am a foo"
... 
>>> foo = Foo()
>>> foo.info
'I am a foo'
>>> class Bar(foo):
...    def __init__(self):
...       self.info2 = "This should be interesting"
... 
Traceback (most recent call last):
  File "", line 1, in
TypeError: Error when calling the metaclass bases
    __init__() takes exactly 1 argument (4 given)
>>>