<ipython-input-28-9a235b20b67c> in __init__(self, path, bound)
29 def __init__ (self, path, bound):
30 self.bound = bound
---> 31 super(Rule, self).__init__( path)
32
TypeError: must be type, not classobj
Код такой:
class Rule:
def __init__(self, path):
self.path = path
class sideRule(Rule):
def __init__ (self, path, bound):
self.bound = bound
super(Rule, self).__init__( path)
Python 2.7.6, IPython 2.0.0