Message302503
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" |
|
Date |
User |
Action |
Args |
2017-09-19 05:54:53 | ncoghlan | set | recipients:
+ ncoghlan, serhiy.storchaka |
2017-09-19 05:54:53 | ncoghlan | set | messageid: <1505800493.59.0.273410182601.issue31506@psf.upfronthosting.co.za> |
2017-09-19 05:54:53 | ncoghlan | link | issue31506 messages |
2017-09-19 05:54:53 | ncoghlan | create | |
|