summaryrefslogtreecommitdiffstats
path: root/Python/getargs.c
Commit message (Collapse)AuthorAgeFilesLines
* [3.6] bpo-30923: Silence fall-through warnings included in -Wextra since ↵Victor Stinner2017-09-121-1/+1
| | | | | | | | | | | | | | | | gcc-7.0 (#3518) * bpo-30923: Disable warning that has been part of -Wextra since gcc-7.0. (#3142) (cherry picked from commit d73a960c575207539c3f9765cff26d4fff400b45) * bpo-30923: Silence fall-through warnings included in -Wextra since gcc-7.0. (#3157) (cherry picked from commit f432a3234f9f2ee09bd40be03e06bf72865ee375) * bpo-31275: Small refactoring to silence a fall-through warning. (#3206) (cherry picked from commit 138753c1b96b5e06a5c5d409fa4cae5e2fe1108b)
* [3.6] bpo-31373: remove overly strict float range checks (GH-3486) (#3495)Benjamin Peterson2017-09-121-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. (cherry picked from commit 2bb69a5b4e7f96cb35d1b28aa7b7b3974b351f59)
* [3.6] fixes bpo-31373: fix undefined floating-point demotions (GH-3396) (#3424)Miss Islington (bot)2017-09-071-0/+5
| | | (cherry picked from commit a853a8ba7850381d49b284295dd6f0dc491dbe44)
* Issue #28701: Replace PyUnicode_CompareWithASCIIString with ↵Serhiy Storchaka2016-11-161-1/+1
|\ | | | | | | | | | | _PyUnicode_EqualToASCIIString. The latter function is more readable, faster and doesn't raise exceptions.
| * Issue #28701: Replace PyUnicode_CompareWithASCIIString with ↵Serhiy Storchaka2016-11-161-1/+1
| | | | | | | | | | | | _PyUnicode_EqualToASCIIString. The latter function is more readable, faster and doesn't raise exceptions.
* | va_end() all va_copy()ed va_lists.Christian Heimes2016-09-211-2/+12
| |
* | replace usage of Py_VA_COPY with the (C99) standard va_copyBenjamin Peterson2016-09-211-6/+6
| |
* | Backed out changeset 3934e070c9dbBenjamin Peterson2016-09-111-2/+1
| |
* | Issue #27810: Fix getargs.c compilation on WindowsVictor Stinner2016-09-101-1/+2
| |
* | fix export of size_t parse stack functionBenjamin Peterson2016-09-101-0/+2
| |
* | Emit METH_FASTCALL code in Argument ClinicVictor Stinner2016-09-101-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
* | Add METH_FASTCALL calling conventionVictor Stinner2016-09-101-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.
* | replace PY_LONG_LONG with long longBenjamin Peterson2016-09-061-8/+8
| |
* | require a long long data type (closes #27961)Benjamin Peterson2016-09-061-4/+0
| |
* | Issue #27574: Decreased an overhead of parsing keyword arguments in functionsSerhiy Storchaka2016-08-141-12/+437
| | | | | | | | implemented with using Argument Clinic.
* | Issue #26282: PyArg_ParseTupleAndKeywords() and Argument Clinic now supportSerhiy Storchaka2016-06-091-42/+79
| | | | | | | | positional-only and keyword parameters in the same function.
* | Issue #26057: Got rid of nonneeded use of PyUnicode_FromObject().Serhiy Storchaka2016-04-131-18/+8
| |
* | Minor code cleanup for PyArg_UnpackTuple.Raymond Hettinger2016-03-261-9/+8
| |
* | Issue #26312: SystemError is now raised in all programming bugs with usingSerhiy Storchaka2016-02-111-6/+6
| | | | | | | | | | PyArg_ParseTupleAndKeywords(). RuntimeError did raised before in some programming bugs.
* | Issue #26198: ValueError is now raised instead of TypeError on bufferSerhiy Storchaka2016-02-071-2/+7
| | | | | | | | | | overflow in parsing "es#" and "et#" format units. SystemError is now raised instead of TypeError on programmical error in parsing format string.
* | Issue #26198: Fixed error messages for some argument parsing errors.Serhiy Storchaka2016-02-071-12/+20
|\ \ | |/
| * Issue #26198: Fixed error messages for some argument parsing errors.Serhiy Storchaka2016-02-071-12/+20
| | | | | | | | | | Fixed the documented about buffer overflow error for "es#" and "et#" format units.
* | Issue #25923: Added more const qualifiers to signatures of static and ↵Serhiy Storchaka2015-12-251-29/+29
|/ | | | private functions.
* Fixed error message for the "u#" format code.Serhiy Storchaka2015-04-191-3/+4
|\
| * Fixed error message for the "u#" format code.Serhiy Storchaka2015-04-191-3/+4
| |
* | Issue #22581: Use more "bytes-like object" throughout the docs and comments.Serhiy Storchaka2014-12-051-7/+7
|\ \ | |/
| * Issue #22581: Use more "bytes-like object" throughout the docs and comments.Serhiy Storchaka2014-12-051-7/+7
| |
* | #16518: Bring error messages in harmony with docs ("bytes-like object")R David Murray2014-10-051-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.)
* | Issue #22215: Now ValueError is raised instead of TypeError when str or bytesSerhiy Storchaka2014-09-061-13/+12
| | | | | | | | argument contains not permitted null character or byte.
* | Issue #22156: Fix "comparison between signed and unsigned integers" compilerVictor Stinner2014-08-151-2/+2
|/ | | | warnings in the Python/ subdirectory.
* remove dynamic initializer lists for c89 compliance (closes #20595)Benjamin Peterson2014-02-111-3/+11
|
* Issue #20294: Argument Clinic now supports argument parsing for __new__ andLarry Hastings2014-01-191-1/+20
| | | | __init__ functions.
* PY_FORMAT_SIZE_T should not be used with PyErr_Format(), PyErr_Format("%zd") isVictor Stinner2013-11-181-2/+1
| | | | portable
* Use Py_ssize_t type for sizes in getargs.cVictor Stinner2013-11-181-7/+18
| | | | Fix compiler warnings on Windows 64-bit
* remove an outdated commentVictor Stinner2013-11-061-1/+0
| | | | The comment is meaningless since changeset 4e985a96a612.
* Re #18521: move array bounds check before array access.Georg Brandl2013-10-141-1/+1
|
* Issue #9566: Fix compilater warnings on Windows 64-bitVictor Stinner2013-06-041-1/+1
|
* Use PY_FORMAT_SIZE_T because Visual Studio does not understand %zd format.Richard Oudkerk2013-05-181-1/+1
|
* Fix compilater warnings on Windows 64-bitVictor Stinner2013-05-161-3/+3
|
* Issue #17170: speed up PyArg_ParseTuple[AndKeywords] a bit.Antoine Pitrou2013-02-171-25/+32
|
* Issue #17173: Remove uses of locale-dependent C functions (isalpha() etc.) ↵Antoine Pitrou2013-02-091-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).
| * Issue #17173: Remove uses of locale-dependent C functions (isalpha() etc.) ↵Antoine Pitrou2013-02-091-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).
* | Added missing va_end in error branch of PyArg_UnpackTuple(). CID 486641Christian Heimes2012-09-101-0/+1
|\ \ | |/
| * Added missing va_end in error branch of PyArg_UnpackTuple(). CID 486641Christian Heimes2012-09-101-0/+1
| |
* | PyArg_Parse*("U"): ensure that the Unicode string is readyVictor Stinner2012-05-291-1/+4
| |
* | Issue #14746: Remove redundant paragraphs from skipitem() in Python/getargs.c.Larry Hastings2012-05-091-18/+8
| |
* | Merge from 3.2. Issue #14749: Add support for 'Z' to skipitem().Larry Hastings2012-05-081-0/+1
|\ \ | |/
| * Issue #14749: Add support for 'Z' to skipitem() in Python/getargs.c.Larry Hastings2012-05-081-0/+1
| |
* | Issue #14705: Added support for the new 'p' format unit to skipitem().Larry Hastings2012-05-071-0/+1
| |
* | Issue #14705: Add 'p' format character to PyArg_ParseTuple* for bool support.Larry Hastings2012-05-051-0/+12
| |