
Nov. 29, 2001
3:32 p.m.
Maybe I'm missing something, but why doesn't the following raise errors: class X(object): __metaclass__ = type X() X(1) X(1, 2, 3, a="x", b="y") I would have expected 'this constructor takes no arguments' errors on the last two lines. Or is this expected behaviour? Thomas

November 2001
4:50 p.m.
Neither object.__init__ nor object.__new__ pays any attention to its argument list. If they did, subclassing would be more difficult. --Guido van Rossum (home page: http://www.python.org/~guido/)

November 2001
4:50 p.m.
Neither object.__init__ nor object.__new__ pays any attention to its argument list. If they did, subclassing would be more difficult. --Guido van Rossum (home page: http://www.python.org/~guido/)
8486
Age (days ago)
8486
Last active (days ago)
1 comments
2 participants
participants (2)
-
Guido van Rossum
-
Thomas Heller