[Patches] [Patch #102684] ceval/getargs: better messages for argument handling

noreply@sourceforge.net noreply@sourceforge.net
Wed, 6 Dec 2000 09:57:31 -0800


Patch #102684 has been updated. 

Project: python
Category: core (C code)
Status: Open
Submitted by: ping
Assigned to : jhylton
Summary: ceval/getargs: better messages for argument handling

Follow-Ups:

Date: 2000-Dec-06 04:56
By: ping

Comment:
This is an attempt to unify and improve the various kinds
of TypeError messages that are produced by the wrong
type or number of arguments.  The function name is now
provided whenever possible, and presented first in the
resulting error message.  (Previously it was not shown
in certain cases.)

The messages for wrong number of arguments to built-ins
and user-defined functions used to be different, and this
patch makes them consistent.  Also this attempts to clarify
the wording of some of the less-than-obvious messages
about keyword arguments.

Lots of test cases and output are included.

-------------------------------------------------------

Date: 2000-Dec-06 09:57
By: gvanrossum

Comment:
No time to evaluate all of this, but I agree with the goal.

Reviewers, please! (Temporarily assigned to Jeremy because he's the function call expert. :-)
-------------------------------------------------------

-------------------------------------------------------
For more info, visit:

http://sourceforge.net/patch/?func=detailpatch&patch_id=102684&group_id=5470