197 Commits (a4e4e35783d26151be19253ff6dd1c3ec2ca7efa)

Author SHA1 Message Date
Victor Stinner 451385d8f8 Issue #8651: PyArg_Parse*() functions raise an OverflowError if the file 15 years ago
Victor Stinner 6ab8e8298e Issue #8992: convertsimple() doesn't need to fill msgbuf if an error occurred 15 years ago
Victor Stinner a093d0d6a9 Issue #8992: Simplify addcleanup() API 15 years ago
Victor Stinner b3c9e073fc Issue #8651: PyArg_Parse*() functions raise an OverflowError if the file 15 years ago
Benjamin Peterson f609654b0e handle dict subclasses gracefully in PyArg_ValidateKeywordArguments 15 years ago
Alexander Belopolsky f0f45142d5 Issue #2443: Added a new macro, Py_VA_COPY, which is equivalent to C99 16 years ago
Victor Stinner 8182b717db Issue #8991: convertbuffer() rejects discontigious buffers 16 years ago
Victor Stinner 25e8ec4724 Issue #8850: Remove "w" and "w#" formats from PyArg_Parse*() functions, use 16 years ago
Victor Stinner 174799912f Issue #8926: getargs.c: release the buffer on error 16 years ago
Victor Stinner 21e09487ac getbuffer(): release the buffer on error (if the buffer is not contiguous) 16 years ago
Victor Stinner 3c9e6e9375 PyArg_Parse*() functions: factorize code for s/z and u/Z formats 16 years ago
Victor Stinner 4aae1ebab2 Issue #8949: "z" format of PyArg_Parse*() functions doesn't accept bytes 16 years ago
Victor Stinner 510b6227a7 getargs.c: remove last reference to "t#" format 16 years ago
Victor Stinner 06e49dd029 Issue #8592: PyArg_Parse*() functions raise a TypeError for "y", "u" and "Z" 16 years ago
Mark Dickinson c73013127b Issue #8950: Make PyArg_Parse* with 'L' code raise for float inputs, 16 years ago
Victor Stinner 3dcb5acdb0 Issue #8838, #8339: Remove codecs.charbuffer_encode() and "t#" parsing format 16 years ago
Victor Stinner 55b002f096 Merged revisions 81849 via svnmerge from 16 years ago
Victor Stinner 5216e6d598 PyArg_Parse*("Z#") raises an error for unknown type 16 years ago
Victor Stinner 2872e5b1f8 convertsimple(): call PyErr_NoMemory() on PyMem_NEW() failure 16 years ago
Victor Stinner 5cb6239f00 Simplify getbuffer(): convertbuffer() fails anyway if bf_getbuffer is NULL 16 years ago
Victor Stinner 43fb0097f3 Remove dead code 16 years ago
Victor Stinner 33109a142b Issue #8837: Remove "O?" format of PyArg_Parse*() functions. The format is no 16 years ago
Victor Stinner 93b5513cf1 Issue #6697: Fix a crash if a keyword contains a surrogate 16 years ago
Antoine Pitrou 7f14f0d8a0 Recorded merge of revisions 81032 via svnmerge from 16 years ago
Antoine Pitrou f95a1b3c53 Recorded merge of revisions 81029 via svnmerge from 16 years ago
Benjamin Peterson fb88636199 prevent the dict constructor from accepting non-string keyword args #8419 16 years ago
Antoine Pitrou f96b78437b Merged revisions 79837 via svnmerge from 16 years ago
Mark Dickinson de60401909 Merged revisions 77218 via svnmerge from 16 years ago
Mark Dickinson d0ed0db574 Merged revisions 76646 via svnmerge from 16 years ago
Mark Dickinson f08173bb93 Issue #7414: Add missing 'case 'C'' to skipitem() in getargs.c. This 16 years ago
Skip Montanaro ba1e0f46ab Issue 7147 - remove ability to attempt to build Python without complex number support (was broken anyway) 16 years ago
Georg Brandl 878c3b004b Merged revisions 74278 via svnmerge from 17 years ago
Sean Reifscheider 642d96a647 - Issue #6624: yArg_ParseTuple with "s" format when parsing argument with 17 years ago
Martin v. Löwis c15bdef819 Issue #6012: Add cleanup support to O& argument parsing. 17 years ago
Benjamin Peterson b173f7853e add a replacement API for PyCObject, PyCapsule #5630 17 years ago
Benjamin Peterson ef3e4c2b4d Merged revisions 70980,71059,71225,71234,71241,71243,71249,71251,71255,71266,71299,71329,71397-71398,71486 via svnmerge from 17 years ago
Benjamin Peterson 7fe9853596 make 'c' only accept bytes and 'C' only unicode #5499 17 years ago
Benjamin Peterson 9203501bae Merged revisions 67889-67892,67895,67898,67904-67907,67912,67918,67920-67921,67923-67924,67926-67927,67930,67943 via svnmerge from 17 years ago
Benjamin Peterson 81d90a220f string -> bytes in error message #4745 17 years ago
Antoine Pitrou f7199578be #3668: When PyArg_ParseTuple correctly parses a s* format, but raises an 18 years ago
Benjamin Peterson 9edd2bd35c Fix #3651 various memory leaks when using the buffer interface 18 years ago
Neal Norwitz 2f99b24172 Merged revisions 66006 via svnmerge from 18 years ago
Martin v. Löwis 423be95dcf Merged revisions 65654 via svnmerge from 18 years ago
Marc-André Lemburg 4cc0f24857 Rename PyUnicode_AsString -> _PyUnicode_AsString and 18 years ago
Christian Heimes 72b710a596 Renamed PyString to PyBytes 18 years ago
Christian Heimes 9c4756ea26 Renamed PyBytes to PyByteArray 18 years ago
Georg Brandl d8b690f7ae #2895: don't crash with bytes as keyword argument names. 18 years ago
Amaury Forgeot d'Arc 0740459248 #2798: PyArg_ParseTuple did not correctly handle the "s" code in case of unicode strings 18 years ago
Christian Heimes bcd2c08e11 Fixed a memory leak introduced in r62462 18 years ago
Trent Nelson 3513358e11 Issue 2440: remove the guard around the handling of case 'n' in getargs.c's convertsimple() such that we always treat it as an index type, regardless of whether or not sizeof(size_t) == sizeof(long). Fix the test_args2.Signed_TestCase.test_n() such that it tests for adherence to PEP 357 (don't try and coerce objects that don't have nb_index slots but do have nb_int slots (i.e. floats) into indexes 'just because we can'). Three other commits are related to this one: r62269 and r62279, which were changes to PyNumber_Index (among other things) to check for nb_int slots when we lack nb_index slots -- and r62292, which is when I reverted these changes after various people pointed out that the test was in fact wrong, not the code. 18 years ago