summaryrefslogtreecommitdiff
path: root/Python/getargs.c
AgeCommit message (Collapse)AuthorLines
2018-07-11bpo-23927: Make getargs.c skipitem() skipping 'w*'. (GH-8192)Miss Islington (bot)-1/+3
(cherry picked from commit 504373c59b48f1ea12132d515459022730db6047) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2018-02-03[3.7] bpo-32746: Fix multiple typos (GH-5144) (GH-5520)Miss Islington (bot)-2/+2
Fix typos found by codespell in docs, docstrings, and comments. (cherry picked from commit c3d9508ff22ece9a96892b628dd5813e2fb0cd80) Co-authored-by: Leo Arias <leo.arias@canonical.com>
2017-12-15bpo-32240: Add the const qualifier to declarations of PyObject* array ↵Serhiy Storchaka-14/+15
arguments. (#4746)
2017-09-10bpo-31373: remove overly strict float range checks (#3486)Benjamin Peterson-4/+0
This undoes a853a8ba7850381d49b284295dd6f0dc491dbe44 except for the pytime.c parts. We want to continue to allow IEEE 754 doubles larger than FLT_MAX to be rounded into finite floats. Tests were added to very this behavior.
2017-09-07bpo-31373: fix undefined floating-point demotions (#3396)Benjamin Peterson-0/+5
2017-08-23bpo-31229: Fixed wrong error messages when too many keyword arguments are ↵Oren Milman-2/+8
received. (#3180)
2017-08-21bpo-30923: Silence fall-through warnings included in -Wextra since gcc-7.0. ↵Stefan Krah-1/+1
(#3157)
2017-07-26bpo-9566: Fix a warning in Python/getargs.c (#2890)Segev Finer-1/+1
2017-07-10Remove _PyArg_NoStackKeywords(). (#2641)Serhiy Storchaka-18/+0
2017-06-09Fix regression in error message introduced in bpo-29951. (#2028)Serhiy Storchaka-2/+2
* Fix regression in error message introduced in bpo-29951. * Add test. * Make the test more strong.
2017-06-06bpo-30534: Fixed error messages when pass keyword arguments (#1901)Serhiy Storchaka-16/+32
to functions implemented in C that don't support this. Also unified error messages for functions that don't take positional or keyword arguments.
2017-04-09bpo-29951: Include function name for some error messages in ↵Michael Seifert-22/+42
`PyArg_ParseTuple*` (#916) Also changed format specifier for function name from "%s" to "%.200s" and exception messages should start with lowercase letter.
2017-02-06Issue #29460: _PyArg_NoKeywords(), _PyArg_NoStackKeywords() andSerhiy Storchaka-0/+4
_PyArg_NoPositional() now are macros.
2017-02-01Issue #29286: Rename private PyArg_UnpackStack_impl() to unpack_stack()Victor Stinner-12/+12
Rename also "l" argument to "nargs".
2017-01-17Issue #29029: Speed up processing positional arguments inSerhiy Storchaka-101/+89
PyArg_ParseTupleAndKeywords(), _PyArg_ParseTupleAndKeywordsFast() and like.
2017-01-17Add _PyArg_UnpackStack() function helperVictor Stinner-18/+55
Issue #29286.
2017-01-17Add _PyArg_NoStackKeywords() helper functionVictor Stinner-4/+21
Issue #29286. Similar to _PyArg_NoKeywords(), but expects a tuple of keyword names, instead of a dict.
2017-01-17Add _PyArg_ParseStack() helper functionVictor Stinner-21/+69
Issue #29286. Function similar to PyArg_ParseTuple(), but uses a C array of PyObject* to pass arguments. Don't support the compatibility mode.
2017-01-17Rename _PyArg_ParseStack to _PyArg_ParseStackAndKeywordsVictor Stinner-3/+3
Issue #29286.
2017-01-17Rename keywords to kwargs in getargs.cVictor Stinner-31/+31
Issue #29029. Patch written by Serhiy Storchaka.
2017-01-16Cleanup getargs.cVictor Stinner-49/+17
Factorize argument checks in: * vgetargskeywordsfast() * vgetargskeywordsfast_impl()
2016-12-16Issue #28959: Added private macro PyDict_GET_SIZE for retrieving the size of ↵Serhiy Storchaka-3/+3
dict.
2016-11-20Issue #19569: Compiler warnings are now emitted if use most of deprecatedSerhiy Storchaka-4/+9
functions.
2016-11-20Added the const qualifier to char* variables that refer to readonly internalSerhiy Storchaka-7/+7
UTF-8 represenatation of Unicode objects.
2016-11-16Issue #28701: Replace PyUnicode_CompareWithASCIIString with ↵Serhiy Storchaka-1/+1
_PyUnicode_EqualToASCIIString. The latter function is more readable, faster and doesn't raise exceptions.
2016-11-16Issue #28701: Replace PyUnicode_CompareWithASCIIString with ↵Serhiy Storchaka-1/+1
_PyUnicode_EqualToASCIIString. The latter function is more readable, faster and doesn't raise exceptions.
2016-09-21va_end() all va_copy()ed va_lists.Christian Heimes-2/+12
2016-09-20replace usage of Py_VA_COPY with the (C99) standard va_copyBenjamin Peterson-6/+6
2016-09-10Backed out changeset 3934e070c9dbBenjamin Peterson-2/+1
2016-09-09Issue #27810: Fix getargs.c compilation on WindowsVictor Stinner-1/+2
2016-09-09fix export of size_t parse stack functionBenjamin Peterson-0/+2
2016-09-09Emit METH_FASTCALL code in Argument ClinicVictor Stinner-27/+157
Issue #27810: * Modify vgetargskeywordsfast() to work on a C array of PyObject* rather than working on a tuple directly. * Add _PyArg_ParseStack() * Argument Clinic now emits code using the new METH_FASTCALL calling convention
2016-09-09Add METH_FASTCALL calling conventionVictor Stinner-1/+2
Issue #27810: Add a new calling convention for C functions: PyObject* func(PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames); Where args is a C array of positional arguments followed by values of keyword arguments. nargs is the number of positional arguments, kwnames are keys of keyword arguments. kwnames can be NULL.
2016-09-06replace PY_LONG_LONG with long longBenjamin Peterson-8/+8
2016-09-05require a long long data type (closes #27961)Benjamin Peterson-4/+0
2016-08-14Issue #27574: Decreased an overhead of parsing keyword arguments in functionsSerhiy Storchaka-12/+437
implemented with using Argument Clinic.
2016-06-09Issue #26282: PyArg_ParseTupleAndKeywords() and Argument Clinic now supportSerhiy Storchaka-41/+78
positional-only and keyword parameters in the same function.
2016-04-13Issue #26057: Got rid of nonneeded use of PyUnicode_FromObject().Serhiy Storchaka-18/+8
2016-03-26Minor code cleanup for PyArg_UnpackTuple.Raymond Hettinger-9/+8
2016-02-11Issue #26312: SystemError is now raised in all programming bugs with usingSerhiy Storchaka-6/+6
PyArg_ParseTupleAndKeywords(). RuntimeError did raised before in some programming bugs.
2016-02-08Issue #26198: ValueError is now raised instead of TypeError on bufferSerhiy Storchaka-2/+7
overflow in parsing "es#" and "et#" format units. SystemError is now raised instead of TypeError on programmical error in parsing format string.
2016-02-08Issue #26198: Fixed error messages for some argument parsing errors.Serhiy Storchaka-12/+20
2016-02-08Issue #26198: Fixed error messages for some argument parsing errors.Serhiy Storchaka-12/+20
Fixed the documented about buffer overflow error for "es#" and "et#" format units.
2015-12-25Issue #25923: Added more const qualifiers to signatures of static and ↵Serhiy Storchaka-29/+29
private functions.
2015-04-19Fixed error message for the "u#" format code.Serhiy Storchaka-3/+4
2015-04-19Fixed error message for the "u#" format code.Serhiy Storchaka-3/+4
2014-12-05Issue #22581: Use more "bytes-like object" throughout the docs and comments.Serhiy Storchaka-7/+7
2014-12-05Issue #22581: Use more "bytes-like object" throughout the docs and comments.Serhiy Storchaka-7/+7
2014-10-05#16518: Bring error messages in harmony with docs ("bytes-like object")R David Murray-3/+4
Some time ago we changed the docs to consistently use the term 'bytes-like object' in all the contexts where bytes, bytearray, memoryview, etc are used. This patch (by Ezio Melotti) completes that work by changing the error messages that previously reported that certain types did "not support the buffer interface" to instead say that a bytes-like object is required. (The glossary entry for bytes-like object references the discussion of the buffer protocol in the docs.)
2014-09-06Issue #22215: Now ValueError is raised instead of TypeError when str or bytesSerhiy Storchaka-13/+12
argument contains not permitted null character or byte.