summaryrefslogtreecommitdiff
path: root/Python/getargs.c
AgeCommit message (Collapse)AuthorLines
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.
2014-08-15Issue #22156: Fix "comparison between signed and unsigned integers" compilerVictor Stinner-2/+2
warnings in the Python/ subdirectory.
2014-02-11remove dynamic initializer lists for c89 compliance (closes #20595)Benjamin Peterson-3/+11
2014-01-18Issue #20294: Argument Clinic now supports argument parsing for __new__ andLarry Hastings-1/+20
__init__ functions.
2013-11-18PY_FORMAT_SIZE_T should not be used with PyErr_Format(), PyErr_Format("%zd") isVictor Stinner-2/+1
portable
2013-11-18Use Py_ssize_t type for sizes in getargs.cVictor Stinner-7/+18
Fix compiler warnings on Windows 64-bit
2013-11-07remove an outdated commentVictor Stinner-1/+0
The comment is meaningless since changeset 4e985a96a612.
2013-10-14Re #18521: move array bounds check before array access.Georg Brandl-1/+1
2013-06-05Issue #9566: Fix compilater warnings on Windows 64-bitVictor Stinner-1/+1
2013-05-18Use PY_FORMAT_SIZE_T because Visual Studio does not understand %zd format.Richard Oudkerk-1/+1
2013-05-17Fix compilater warnings on Windows 64-bitVictor Stinner-3/+3
2013-02-17Issue #17170: speed up PyArg_ParseTuple[AndKeywords] a bit.Antoine Pitrou-25/+32
2013-02-09Issue #17173: Remove uses of locale-dependent C functions (isalpha() etc.) ↵Antoine Pitrou-3/+3
in the interpreter. I've left a couple of them in: zlib (third-party lib), getaddrinfo.c (doesn't include Python.h, and probably obsolete), _sre.c (legitimate use for the re.LOCALE flag), mpdecimal (needs to build without Python.h).
2013-02-09Issue #17173: Remove uses of locale-dependent C functions (isalpha() etc.) ↵Antoine Pitrou-3/+3
in the interpreter. I've left a couple of them in: zlib (third-party lib), getaddrinfo.c (doesn't include Python.h, and probably obsolete), _sre.c (legitimate use for the re.LOCALE flag).
2012-09-10Added missing va_end in error branch of PyArg_UnpackTuple(). CID 486641Christian Heimes-0/+1
2012-09-10Added missing va_end in error branch of PyArg_UnpackTuple(). CID 486641Christian Heimes-0/+1
2012-05-29PyArg_Parse*("U"): ensure that the Unicode string is readyVictor Stinner-1/+4
2012-05-08Issue #14746: Remove redundant paragraphs from skipitem() in Python/getargs.c.Larry Hastings-18/+8
2012-05-08Merge from 3.2. Issue #14749: Add support for 'Z' to skipitem().Larry Hastings-0/+1
2012-05-08Issue #14749: Add support for 'Z' to skipitem() in Python/getargs.c.Larry Hastings-0/+1
2012-05-07Issue #14705: Added support for the new 'p' format unit to skipitem().Larry Hastings-0/+1
2012-05-05Issue #14705: Add 'p' format character to PyArg_ParseTuple* for bool support.Larry Hastings-0/+12
2012-03-20Issue #14328: Add keyword-only parameters to PyArg_ParseTupleAndKeywords.Larry Hastings-1/+33
They're optional-only for now (unlike in pure Python) but that's all I needed. The syntax can easily be relaxed if we want to support required keyword-only arguments for extension types in the future.
2012-03-16plug memory leak (closes #14325)Benjamin Peterson-1/+1
2012-03-16kill capsule names that we don't need anymoreBenjamin Peterson-4/+0