Message99547
>>> object(1)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: object.__new__() takes no parameters
This is misleading because object.__new__() takes one parameter:
>>> object.__new__(object)
<object object at 0x100413980>
I suggest changing "object.__new__() takes no parameters" to "object() takes no parameters".
Some other inconsistencies that I noticed:
>>> tuple.__new__(tuple, 1, 2, 3)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: tuple() takes at most 1 argument (3 given)
but
>>> list.__new__(list, 1, 2, 3)
[] |
|
Date |
User |
Action |
Args |
2010-02-18 23:14:25 | Alexander.Belopolsky | set | recipients:
+ Alexander.Belopolsky |
2010-02-18 23:14:25 | Alexander.Belopolsky | set | messageid: <1266534865.21.0.144393400814.issue7963@psf.upfronthosting.co.za> |
2010-02-18 23:14:23 | Alexander.Belopolsky | link | issue7963 messages |
2010-02-18 23:14:23 | Alexander.Belopolsky | create | |
|