This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients ncoghlan, serhiy.storchaka
Date 2017-09-20.06:14:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
str(x=1) is not the best example since str() takes keyword arguments. Look at tuple() and list():

>>> tuple(x=1)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: tuple() takes no keyword arguments
>>> list(x=1)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: list() takes no keyword arguments

Initial version of my patch for issue31506 reported error messages similar to tuple() and list(), but at end I simplified it since in any case the error message was not perfect.
Date User Action Args
2017-09-20 06:14:26serhiy.storchakasetrecipients: + serhiy.storchaka, ncoghlan
2017-09-20 06:14:26serhiy.storchakasetmessageid: <>
2017-09-20 06:14:25serhiy.storchakalinkissue31527 messages
2017-09-20 06:14:25serhiy.storchakacreate