Serhiy Storchaka added the comment:

C.__new__(42) emits different error, "TypeError: object.__new__(X): X is not a 
type object (int)". Perhaps you meant C.__new__(C, 42) which now emits 
"TypeError: C() takes no arguments".

Messages "object.__new__() takes no arguments" and "object.__init__() takes no 
arguments" are not correct since both object.__new__() and object.__init__() 
take one argument -- a class and an instance correspondingly.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue31506>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to