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 mark.dickinson
Recipients chris.jerdonek, ezio.melotti, mark.dickinson, serhiy.storchaka
Date 2012-11-23.19:53:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1353700422.77.0.861058643985.issue16543@psf.upfronthosting.co.za>
In-reply-to
Content
> Here the error message is about "positional arguments," which are
> different from parameters.

Okay.  So is it also planned to change the existing error messages for user-defined functions?  E.g.:

>>> def f(a, b=1):
...     pass
... 
>>> f()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: f() missing 1 required positional argument: 'a'


If yes, then I think all these changes need to be coordinated, and that probably involves submitting a proposal to the mailing list.  If no, then I think the change proposed in this issue is not an improvement, since it makes the error messages overall inconsistent.
History
Date User Action Args
2012-11-23 19:53:42mark.dickinsonsetrecipients: + mark.dickinson, ezio.melotti, chris.jerdonek, serhiy.storchaka
2012-11-23 19:53:42mark.dickinsonsetmessageid: <1353700422.77.0.861058643985.issue16543@psf.upfronthosting.co.za>
2012-11-23 19:53:42mark.dickinsonlinkissue16543 messages
2012-11-23 19:53:42mark.dickinsoncreate