176 Commits (69e9727657dad167215b656de910d95cefe1ee45)

Author SHA1 Message Date
Victor Stinner 451385d8f8 Issue #8651: PyArg_Parse*() functions raise an OverflowError if the file 15 years ago
Victor Stinner 174799912f Issue #8926: getargs.c: release the buffer on error 16 years ago
Victor Stinner 55b002f096 Merged revisions 81849 via svnmerge from 16 years ago
Antoine Pitrou 7f14f0d8a0 Recorded merge of revisions 81032 via svnmerge from 16 years ago
Mark Dickinson d0ed0db574 Merged revisions 76646 via svnmerge from 16 years ago
Georg Brandl 878c3b004b Merged revisions 74278 via svnmerge from 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
Trent Nelson 7179220b57 Issue 2440: revert r62269 and r62279. These changes were made in an effort to fix test_args2.Signed_TestCase.test_n(), which was failing on Windows x64 on the following line: 'self.failUnlessEqual(99, getargs_n(Long()))'. Although the two commits *did* fix the test on Windows x64, it's become clear that it's the test that's incorrect, and the changes to PyNumber_Index() in particular were not warranted (and actually violate PEP 357). This commit will get us back to where we were at r62268, before I started butchering things. 18 years ago
Trent Nelson e2ae4684a5 Issue 2440: fix the handling of %n in Python/getargs.c's convertsimple(), extend Objects/abstract.c's PyNumber_Index() to accept PyObjects that have nb_int slots, and update test_getargs2 to test that an exception is thrown when __int__() returns a non-int object. 18 years ago
Georg Brandl 896c317b43 Add XXX comments for whoever cleans up getargs.c :) 18 years ago
Christian Heimes 380f7f22fa Merged revisions 61038,61042-61045,61047,61050,61053,61055-61056,61061-61062,61066,61068,61070,61081-61095 via svnmerge from 18 years ago
Christian Heimes 836baa53d8 Merged revisions 61038,61042-61045,61047,61050,61053,61055-61056,61061-61064,61066-61080 via svnmerge from 18 years ago
Christian Heimes 217cfd1c86 Cleanup: Replaced most PyInt_ aliases with PyLong_ and disabled the aliases in intobject.h 18 years ago
Christian Heimes 4e30a845b4 Merged revisions 59239-59244 via svnmerge from 18 years ago
Amaury Forgeot d'Arc 39599dca9d PyString_AsString is permissive and accepts unicode strings. 18 years ago
Guido van Rossum b08340053c Fix error messages for buffer objects to say "bytes" instead of "string". 18 years ago
Guido van Rossum 98297ee781 Merging the py3k-pep3137 branch back into the py3k branch. 18 years ago
Georg Brandl e1a0d11c5c #1316: remove redundant PyLong_Check calls when PyInt_Check was already called. 18 years ago
Alexandre Vassalotti 70a237179f Remove the buffer API from PyUnicode as specified by PEP 3137. Also, 19 years ago
Travis E. Oliphant ddacf96868 Eliminate use of PyBUF_CHARACTER flag which is no longer part of the buffer interface. Fix up array module to export the correct format for wide-builds. 19 years ago
Travis E. Oliphant 8ae62b6094 Change PyBuffer to Py_buffer to be consistent with other non-object structures like Py_complex. Add some more functionality to the memoryview object. 19 years ago
Neal Norwitz 64fd6fb254 Ugh, hopefully I can get this right. The code is only compiled on Win64 19 years ago
Neal Norwitz b879f57b32 Try to fix the problem of passing a non-int on Win64 right this time. 19 years ago
Neal Norwitz 538d17aa23 Try to fix a problem with large values on Win64. Diagnosed by Thomas Heller 19 years ago
Guido van Rossum fb67be2f6b Three patches from issue #1047, by Amaury Forgeot d'Arc: 19 years ago
Travis E. Oliphant b99f762f10 Merged in py3k-buffer branch to main line. All objects now use the buffer protocol in PEP 3118. 19 years ago
Walter Dörwald d09413012c Revert r56044 (which changed the %c format specifier to accept a 19 years ago
Walter Dörwald bc1f886170 Change %c format specifier for PyArg_ParseTuple() so that it accepts 19 years ago
Guido van Rossum d70539abef Be more robust around bytes for e[st]#? formats. 19 years ago
Guido van Rossum 617dbc4d64 Checkpoint. A b it closer to working pickles and pickletools. 19 years ago
Walter Dörwald 612344f127 Change UnicodeDecodeError objects so that the 'object' attribute 19 years ago
Guido van Rossum 09dc34fc9c Compare and hash unicode objects like their UTF-8 representations. 19 years ago
Guido van Rossum f15a29f975 More coding by random modification. 19 years ago
Guido van Rossum 8d30cc0144 Get rid of all #ifdef Py_USING_UNICODE (it is always present now). 19 years ago