M
mk
class Person(object):
.... pass
........ def hello(self):
.... print 'hello'
....Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: Cannot create a consistent method resolution
order (MRO) for bases object, Friendly
But it works for old-style classes:
.... pass
........ def hello(self):
.... print 'hello'
....hello
Python is 2.6.1.
.... pass
........ def hello(self):
.... print 'hello'
....Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: Cannot create a consistent method resolution
order (MRO) for bases object, Friendly
But it works for old-style classes:
.... pass
........ def hello(self):
.... print 'hello'
....hello
Python is 2.6.1.