Author ncoghlan
Recipients ncoghlan, serhiy.storchaka
Date 2017-09-19.05:54:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1505800493.59.0.273410182601.issue31506@psf.upfronthosting.co.za>
In-reply-to
Content
Those would both report "C() takes no parameters" without further enhancements (which would be out of scope for this issue).

The proposed improvement here isn't "Let's make the error message exactly correct in all cases" (that's probably impossible, since we've lost relevant information by the time the argument processing happens).

Instead, it's "let's make the error message more helpful in the most common case for beginners, and let the folks performing the more advanced operation of calling __new__ directly do the translation if they need to"
History
Date User Action Args
2017-09-19 05:54:53ncoghlansetrecipients: + ncoghlan, serhiy.storchaka
2017-09-19 05:54:53ncoghlansetmessageid: <1505800493.59.0.273410182601.issue31506@psf.upfronthosting.co.za>
2017-09-19 05:54:53ncoghlanlinkissue31506 messages
2017-09-19 05:54:53ncoghlancreate