summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_extcall.py
Commit message (Collapse)AuthorAgeFilesLines
...
* This patch makes sure that the function name always appears in the errorKa-Ping Yee2001-01-151-0/+30
| | | | | | | message, and tries to make the messages more consistent and helpful when the wrong number of arguments or duplicate keyword arguments are supplied. Comes with more tests for test_extcall.py and and an update to an error message in test/output/test_pyexpat.
* When a PyCFunction that takes only positional parameters is called withFred Drake2001-01-041-1/+11
| | | | | | | | | | an empty keywords dictionary (via apply() or the extended call syntax), the keywords dict should be ignored. If the keywords dict is not empty, TypeError should be raised. (Between the restructuring of the call machinery and this patch, an empty dict in this situation would trigger a SystemError via PyErr_BadInternalCall().) Added regression tests to detect errors for this.
* Fix for SF bug #117241Jeremy Hylton2000-10-301-0/+18
| | | | | | | | | When a method is called with no regular arguments and * args, defer the first arg is subclass check until after the * args have been expanded. N.B. The CALL_FUNCTION implementation is getting really hairy; should review it to see if it can be simplified.
* Make reindent.py happy (convert everything to 4-space indents!).Fred Drake2000-10-231-6/+6
|
* Break a cycle created in the saboteur() function.Vladimir Marangozov2000-07-151-2/+5
|
* Don't be so strict in checking AttributeError -- the error messageGuido van Rossum2000-04-101-2/+2
| | | | recently changed.
* Two fixes for extended call syntax:Jeremy Hylton2000-03-301-0/+44
| | | | | | | If a non-tuple sequence is passed as the *arg, convert it to a tuple before checking its length. If named keyword arguments are used in combination with **kwargs, make a copy of kwargs before inserting the new keys.
* fix previous checkinJeremy Hylton2000-03-281-1/+1
|
* add test cases for Greg Ewing's extended call syntax patchJeremy Hylton2000-03-281-0/+99