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.6] bpo-32746: Fix multiple typos (GH-5144) (GH-5522)Terry Jan Reedy-2/+2
Fix typos found by codespell in docs, docstrings, and comments. Fixes for the following files were in post-3.6 code and not backported: Lib/ctypes/_aix.py (new), Lib/test/test_concurrent_futures.py, Modules/_asynciomodule.c, Modules/_pickle.c, Objects/obmalloc.c. (cherry picked from commit c3d9508ff22ece9a96892b628dd5813e2fb0cd80)
2017-09-12[3.6] bpo-30923: Silence fall-through warnings included in -Wextra since ↵Victor Stinner-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)
2017-09-11[3.6] bpo-31373: remove overly strict float range checks (GH-3486) (#3495)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. (cherry picked from commit 2bb69a5b4e7f96cb35d1b28aa7b7b3974b351f59)
2017-09-07[3.6] fixes bpo-31373: fix undefined floating-point demotions (GH-3396) (#3424)Miss Islington (bot)-0/+5
(cherry picked from commit a853a8ba7850381d49b284295dd6f0dc491dbe44)
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