Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fixed error message for the "u#" format code. | Serhiy Storchaka | 2015-04-19 | 1 | -3/+4 |
| | |||||
* | Issue #22581: Use more "bytes-like object" throughout the docs and comments. | Serhiy Storchaka | 2014-12-05 | 1 | -7/+7 |
| | |||||
* | remove dynamic initializer lists for c89 compliance (closes #20595) | Benjamin Peterson | 2014-02-11 | 1 | -3/+11 |
| | |||||
* | Issue #20294: Argument Clinic now supports argument parsing for __new__ and | Larry Hastings | 2014-01-19 | 1 | -1/+20 |
| | | | | __init__ functions. | ||||
* | PY_FORMAT_SIZE_T should not be used with PyErr_Format(), PyErr_Format("%zd") is | Victor Stinner | 2013-11-18 | 1 | -2/+1 |
| | | | | portable | ||||
* | Use Py_ssize_t type for sizes in getargs.c | Victor Stinner | 2013-11-18 | 1 | -7/+18 |
| | | | | Fix compiler warnings on Windows 64-bit | ||||
* | remove an outdated comment | Victor Stinner | 2013-11-06 | 1 | -1/+0 |
| | | | | The comment is meaningless since changeset 4e985a96a612. | ||||
* | Re #18521: move array bounds check before array access. | Georg Brandl | 2013-10-14 | 1 | -1/+1 |
| | |||||
* | Issue #9566: Fix compilater warnings on Windows 64-bit | Victor Stinner | 2013-06-04 | 1 | -1/+1 |
| | |||||
* | Use PY_FORMAT_SIZE_T because Visual Studio does not understand %zd format. | Richard Oudkerk | 2013-05-18 | 1 | -1/+1 |
| | |||||
* | Fix compilater warnings on Windows 64-bit | Victor Stinner | 2013-05-16 | 1 | -3/+3 |
| | |||||
* | Issue #17170: speed up PyArg_ParseTuple[AndKeywords] a bit. | Antoine Pitrou | 2013-02-17 | 1 | -25/+32 |
| | |||||
* | Issue #17173: Remove uses of locale-dependent C functions (isalpha() etc.) ↵ | Antoine Pitrou | 2013-02-09 | 1 | -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 Pitrou | 2013-02-09 | 1 | -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 486641 | Christian Heimes | 2012-09-10 | 1 | -0/+1 |
|\ \ | |/ | |||||
| * | Added missing va_end in error branch of PyArg_UnpackTuple(). CID 486641 | Christian Heimes | 2012-09-10 | 1 | -0/+1 |
| | | |||||
* | | PyArg_Parse*("U"): ensure that the Unicode string is ready | Victor Stinner | 2012-05-29 | 1 | -1/+4 |
| | | |||||
* | | Issue #14746: Remove redundant paragraphs from skipitem() in Python/getargs.c. | Larry Hastings | 2012-05-09 | 1 | -18/+8 |
| | | |||||
* | | Merge from 3.2. Issue #14749: Add support for 'Z' to skipitem(). | Larry Hastings | 2012-05-08 | 1 | -0/+1 |
|\ \ | |/ | |||||
| * | Issue #14749: Add support for 'Z' to skipitem() in Python/getargs.c. | Larry Hastings | 2012-05-08 | 1 | -0/+1 |
| | | |||||
* | | Issue #14705: Added support for the new 'p' format unit to skipitem(). | Larry Hastings | 2012-05-07 | 1 | -0/+1 |
| | | |||||
* | | Issue #14705: Add 'p' format character to PyArg_ParseTuple* for bool support. | Larry Hastings | 2012-05-05 | 1 | -0/+12 |
| | | |||||
* | | Issue #14328: Add keyword-only parameters to PyArg_ParseTupleAndKeywords. | Larry Hastings | 2012-03-20 | 1 | -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. | ||||
* | | plug memory leak (closes #14325) | Benjamin Peterson | 2012-03-16 | 1 | -1/+1 |
| | | |||||
* | | kill capsule names that we don't need anymore | Benjamin Peterson | 2012-03-16 | 1 | -4/+0 |
| | | |||||
* | | use memory macros | Benjamin Peterson | 2012-03-16 | 1 | -3/+3 |
| | | |||||
* | | check result of PyMem_New | Benjamin Peterson | 2012-03-16 | 1 | -0/+8 |
| | | |||||
* | | Issue #14325: Stop using python lists, capsules, and the garbage collector ↵ | Jean-Paul Calderone | 2012-03-16 | 1 | -120/+85 |
| | | | | | | | | to deal with PyArg_Parse* cleanup. | ||||
* | | convertsimple(): "str without bytes" => "str without characters" | Victor Stinner | 2011-10-13 | 1 | -3/+3 |
| | | |||||
* | | Use PyUnicode_AsUnicodeAndSize() instead of PyUnicode_GET_SIZE() | Victor Stinner | 2011-10-11 | 1 | -4/+6 |
| | | |||||
* | | Fix usage og PyUnicode_READY() | Victor Stinner | 2011-10-04 | 1 | -7/+14 |
| | | |||||
* | | Implement PEP 393. | Martin v. Löwis | 2011-09-28 | 1 | -21/+25 |
| | | |||||
* | | Issue #12380: PyArg_ParseTuple now accepts a bytearray for the 'c' format. | Eli Bendersky | 2011-07-29 | 1 | -0/+2 |
| | | | | | | | | | | | | | | As a side effect, this now allows the rjust, ljust and center methods of bytes and bytearray to accept a bytearray argument. Patch by Petri Lehtinen | ||||
* | | Issue #10833: Use PyErr_Format() and PyUnicode_FromFormat() instead of | Victor Stinner | 2011-03-21 | 1 | -26/+22 |
| | | | | | | | | | | PyOS_snprintf() to avoid temporary buffer allocated on the stack and a conversion from bytes to Unicode. | ||||
* | | Remove useless argument of _PyUnicode_AsDefaultEncodedString() | Victor Stinner | 2011-03-02 | 1 | -1/+1 |
| | | |||||
* | | Issue #8914: fix various warnings from the Clang static analyzer v254. | Brett Cannon | 2011-02-22 | 1 | -3/+2 |
|/ | |||||
* | Issue #8992: convertsimple() doesn't need to fill msgbuf if an error occurred | Victor Stinner | 2011-01-04 | 1 | -38/+41 |
| | | | | Return msgbug on error is enough. | ||||
* | Issue #8992: Simplify addcleanup() API | Victor Stinner | 2011-01-04 | 1 | -13/+15 |
| | | | | Don't need to handle unknown destructor anymore. | ||||
* | Issue #8651: PyArg_Parse*() functions raise an OverflowError if the file | Victor Stinner | 2011-01-04 | 1 | -1/+11 |
| | | | | | doesn't have PY_SSIZE_T_CLEAN define and the size doesn't fit in an int (length bigger than 2^31-1). | ||||
* | handle dict subclasses gracefully in PyArg_ValidateKeywordArguments | Benjamin Peterson | 2010-11-17 | 1 | -1/+1 |
| | |||||
* | Issue #2443: Added a new macro, Py_VA_COPY, which is equivalent to C99 | Alexander Belopolsky | 2010-08-11 | 1 | -36/+4 |
| | | | | | va_copy, but available on all python platforms. Untabified a few unrelated files. | ||||
* | Issue #8991: convertbuffer() rejects discontigious buffers | Victor Stinner | 2010-07-28 | 1 | -21/+8 |
| | |||||
* | Issue #8850: Remove "w" and "w#" formats from PyArg_Parse*() functions, use | Victor Stinner | 2010-06-25 | 1 | -47/+17 |
| | | | | "w*" format instead. Add tests for "w*" format. | ||||
* | getbuffer(): release the buffer on error (if the buffer is not contiguous) | Victor Stinner | 2010-06-24 | 1 | -0/+1 |
| | |||||
* | PyArg_Parse*() functions: factorize code for s/z and u/Z formats | Victor Stinner | 2010-06-24 | 1 | -96/+25 |
| | |||||
* | Issue #8949: "z" format of PyArg_Parse*() functions doesn't accept bytes | Victor Stinner | 2010-06-24 | 1 | -5/+0 |
| | | | | objects, as described in the documentation. | ||||
* | getargs.c: remove last reference to "t#" format | Victor Stinner | 2010-06-13 | 1 | -1/+0 |
| | | | | "t#" format was removed from convertitem() (convertsimple) but not skipitem(). | ||||
* | Issue #8592: PyArg_Parse*() functions raise a TypeError for "y", "u" and "Z" | Victor Stinner | 2010-06-13 | 1 | -3/+17 |
| | | | | | formats if the string contains a null byte/character. Write unit tests for string formats. | ||||
* | Issue #8950: Make PyArg_Parse* with 'L' code raise for float inputs, | Mark Dickinson | 2010-06-10 | 1 | -17/+3 |
| | | | | | instead of warning. This makes it consistent with the other integer codes. | ||||
* | Issue #8838, #8339: Remove codecs.charbuffer_encode() and "t#" parsing format | Victor Stinner | 2010-06-08 | 1 | -40/+1 |
| | | | | | Remove last references to the "char buffer" of the buffer protocol from Python3. |