305 Commits (2c003eff8fef430f1876adf88e466bcfcbd0cc9e)

Author SHA1 Message Date
Benjamin Peterson 828a7066f1 Merged revisions 67898,67904-67907,67912,67918,67920-67921,67923-67924,67927,67930,67932,67943 via svnmerge from 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
Benjamin Peterson 4caef5c7e2 fix #4720: the format to PyArg_ParseTupleAndKeywords can now start with '|' 17 years ago
Antoine Pitrou d4ae97bc38 #3668: When PyArg_ParseTuple correctly parses a s* format, but raises an 18 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
Neal Norwitz 18aa388ca0 Fix: 18 years ago
Martin v. Löwis 423be95dcf Merged revisions 65654 via svnmerge from 18 years ago
Martin v. Löwis f91d46a17d Issue #3139: Make buffer-interface thread-safe wrt. PyArg_ParseTuple, 18 years ago
Marc-André Lemburg 4cc0f24857 Rename PyUnicode_AsString -> _PyUnicode_AsString and 18 years ago
Gregory P. Smith dd96db63f6 This reverts r63675 based on the discussion in this thread: 18 years ago
Christian Heimes 72b710a596 Renamed PyString to PyBytes 18 years ago
Christian Heimes 9c4756ea26 Renamed PyBytes to PyByteArray 18 years ago
Christian Heimes 593daf545b Renamed PyString to PyBytes 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 ea837931cf Patch #1691070 from Roger Upole: Speed up PyArg_ParseTupleAndKeywords() and improve error msg 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
Neal Norwitz df6ac3db57 Whitespace normalization 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 8334a4fc31 Backport of r59241: str.decode fails on very long strings on 64bit platforms. 18 years ago
Amaury Forgeot d'Arc dafd32b730 Issue #1521: on 64bit platforms, str.decode fails on very long strings. 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, 18 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. 18 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