summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_getargs2.py
Commit message (Collapse)AuthorAgeFilesLines
* Patch #1691070 from Roger Upole: Speed up PyArg_ParseTupleAndKeywords() and ↵Christian Heimes2008-02-261-1/+50
| | | | | | improve error msg My tests don't show the promised speed up of 10%. The code is as fast as the old code for simple cases and slightly faster for complex cases with several of args and kwargs. But the patch simplifies the code, too.
* Patch #2167 from calvin: Remove unused importsChristian Heimes2008-02-231-2/+1
|
* Whitespace normalization.Tim Peters2006-07-261-1/+1
|
* Part of bug #1523610: fix miscalculation of buffer length.Georg Brandl2006-07-261-1/+18
| | | | | Also add a guard against NULL in converttuple and add a test case (that previously would have crashed).
* Whitespace normalization.Tim Peters2006-04-131-1/+1
|
* Add a test for Py_ssize_t. Correct typo in getargs.c.Georg Brandl2006-04-131-1/+18
|
* Revert previous checkin on getargs 'L' code. Try to convert allMartin v. Löwis2005-03-031-10/+4
| | | | | numbers in PyLong_AsLongLong, and update test suite accordingly. Backported to 2.4.
* Combine the functionality of test_support.run_unittest()Walter Dörwald2003-05-011-5/+3
| | | | | | | | | | and test_support.run_classtests() into run_unittest() and use it wherever possible. Also don't use "from test.test_support import ...", but "from test import test_support" in a few spots. From SF patch #662807.
* This test now uses the separate getargs_X functions from _testcapimodule.Thomas Heller2003-04-241-101/+109
|
* Whitespace normalization.Tim Peters2003-04-241-1/+1
|
* Delete the 'h' test -- 'h' is no longer unsigned so the machinery hereGuido van Rossum2003-04-181-16/+1
| | | | can't test it. It's unchanged so why would we test it anyway...
* SF # 595026: support for masks in getargs.c.Thomas Heller2003-04-171-0/+245
New functions: unsigned long PyInt_AsUnsignedLongMask(PyObject *); unsigned PY_LONG_LONG) PyInt_AsUnsignedLongLongMask(PyObject *); unsigned long PyLong_AsUnsignedLongMask(PyObject *); unsigned PY_LONG_LONG) PyLong_AsUnsignedLongLongMask(PyObject *); New and changed format codes: b unsigned char 0..UCHAR_MAX B unsigned char none ** h unsigned short 0..USHRT_MAX H unsigned short none ** i int INT_MIN..INT_MAX I * unsigned int 0..UINT_MAX l long LONG_MIN..LONG_MAX k * unsigned long none L long long LLONG_MIN..LLONG_MAX K * unsigned long long none Notes: * New format codes. ** Changed from previous "range-and-a-half" to "none"; the range-and-a-half checking wasn't particularly useful. New test test_getargs2.py, to verify all this.