summaryrefslogtreecommitdiff
path: root/Python/getargs.c
AgeCommit message (Collapse)AuthorLines
2019-10-21bpo-38540: Fix possible leak in PyArg_Parse for "esGH-" and "etGH-". (GH-16869)Miss Skeleton (bot)-2/+26
(cherry picked from commit 5bc6a7c06eda20ba131ecba6752be0506d310181) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2019-08-29[3.8] bpo-37034: Display argument name on errors with keyword arguments with ↵Serhiy Storchaka-14/+8
Argument Clinic. (GH-13593). (GH-15599) (cherry picked from commit 4901fe274bc82b95dc89bcb3de8802a3dfedab32) Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr>
2019-08-24[3.8] bpo-37942: Improve argument clinic float converter (GH-15470) (GH-15480)Raymond Hettinger-2/+2
(cherry picked from commit aef9ad82f7f667cd001a7112d3bc636e918626f7)
2019-03-23bpo-36381: warn when no PY_SSIZE_T_CLEAN defined (GH-12473)Inada Naoki-2/+13
We will remove int support from 3.10 or 4.0.
2019-03-16bpo-36127: Fix compiler warning in _PyArg_UnpackKeywords(). (GH-12353)Serhiy Storchaka-1/+1
2019-03-14bpo-36127: Argument Clinic: inline parsing code for keyword parameters. ↵Serhiy Storchaka-55/+265
(GH-12058)
2019-03-14bpo-36254: Fix yet one invalid use of %d in format string in C. (GH-12318)Serhiy Storchaka-1/+1
2019-03-13bpo-36282: Improved error message for too much positional arguments. (GH-12310)Serhiy Storchaka-1/+1
2019-03-13bpo-36254: Fix invalid uses of %d in format strings in C. (GH-12264)Serhiy Storchaka-5/+5
2019-02-25bpo-35459: Use PyDict_GetItemWithError() instead of PyDict_GetItem(). (GH-11112)Serhiy Storchaka-10/+31
2019-02-25bpo-36048: Use __index__() instead of __int__() for implicit conversion if ↵Serhiy Storchaka-1/+3
available. (GH-11952) Deprecate using the __int__() method in implicit conversions of Python numbers to C integers.
2019-01-11bpo-35582: Argument Clinic: inline parsing code for positional parameters. ↵Serhiy Storchaka-10/+33
(GH-11313)
2018-12-25bpo-23867: Argument Clinic: inline parsing code for a single positional ↵Serhiy Storchaka-0/+8
parameter. (GH-9689)
2018-12-21bpo-34193: Fix pluralization in getargs.c and test cases. (GH-8438)Xtreak-14/+24
2018-11-25bpo-35081: Add Include/internal/pycore_tupleobject.h (GH-10705)Victor Stinner-0/+1
Move _PyTuple_ITEMS() to a new header file: Include/internal/pycore_tupleobject.h
2018-11-09bpo-35199: Add an internal _PyTuple_ITEMS() macro (GH-10434)Victor Stinner-3/+3
* _PyTuple_ITEMS() gives access to the tuple->ob_item field and cast the first argument to PyTupleObject*. This internal macro is only usable if Py_BUILD_CORE is defined. * Replace &PyTuple_GET_ITEM(ob, 0) with _PyTuple_ITEMS(ob). * Replace PyTuple_GET_ITEM(op, 1) with &_PyTuple_ITEMS(ob)[1].
2018-07-22bpo-34127: Fix grammar in error message with respect to argument count (GH-8395)Xtreak-4/+4
2018-07-11bpo-23927: Make getargs.c skipitem() skipping 'w*'. (GH-8192)Serhiy Storchaka-1/+3
2018-02-03bpo-32746: Fix multiple typos (GH-5144)Leo Arias-2/+2
Fix typos found by codespell in docs, docstrings, and comments.
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.