Author Alexander.Belopolsky
Recipients Alexander.Belopolsky
Date 2010-02-18.23:14:23
SpamBayes Score 1.29574e-10
Marked as misclassified No
Message-id <1266534865.21.0.144393400814.issue7963@psf.upfronthosting.co.za>
In-reply-to
Content
>>> 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)
[]
History
Date User Action Args
2010-02-18 23:14:25Alexander.Belopolskysetrecipients: + Alexander.Belopolsky
2010-02-18 23:14:25Alexander.Belopolskysetmessageid: <1266534865.21.0.144393400814.issue7963@psf.upfronthosting.co.za>
2010-02-18 23:14:23Alexander.Belopolskylinkissue7963 messages
2010-02-18 23:14:23Alexander.Belopolskycreate