I accidentally derived a class from a module (types instead of
types.Dicttype)
[color=blue][color=green][color=darkred]
>>> import types
>>> class f(types): pass[/color][/color][/color]
....
Traceback (most recent call last):
File "<stdin>", line 1, in ?
TypeError: function takes at most 2 arguments (3 given)
Shouldn't this report something like (TypeError: can't subclass from a
module) It goes to the right line, but I coudn't see where the function
was being called :)
Brian
types.Dicttype)
[color=blue][color=green][color=darkred]
>>> import types
>>> class f(types): pass[/color][/color][/color]
....
Traceback (most recent call last):
File "<stdin>", line 1, in ?
TypeError: function takes at most 2 arguments (3 given)
Shouldn't this report something like (TypeError: can't subclass from a
module) It goes to the right line, but I coudn't see where the function
was being called :)
Brian
Comment