288 Commits (34de2d312b3687994ddbc29adb66e88f672034c7)

Author SHA1 Message Date
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
Guido van Rossum 8d30cc0144 Get rid of all #ifdef Py_USING_UNICODE (it is always present now). 19 years ago
Guido van Rossum 572dbf8f13 Checkpoint. Manipulated things so that string literals are always 19 years ago
Guido van Rossum ddefaf31b3 Merged the int/long unification branch, by very crude means (sorry Thomas!). 19 years ago
Thomas Wouters 89f507fe8c Four months of trunk changes (including a few releases...) 19 years ago
Armin Rigo 7ccbca93a2 Forward-port of r52136,52138: a review of overflow-detecting code. 20 years ago
Armin Rigo 4b63c21d6f Forward-port of r52136: a review of overflow-detecting code. 20 years ago
Walter Dörwald d14bf61d05 Fix typo. 20 years ago
Thomas Wouters 0e3f591aee Merged revisions 46753-51188 via svnmerge from 20 years ago
Georg Brandl 209307eb3b Introduce an upper bound on tuple nesting depth in 20 years ago
Guido van Rossum 3cf5b1eef9 Get rid of most of the flags (in tp_flags) that keep track of various 20 years ago
Georg Brandl 5f135787ec Part of bug #1523610: fix miscalculation of buffer length. 20 years ago
Georg Brandl 98251f8a2f Argh. "integer" is a very confusing word ;) 20 years ago
Georg Brandl 22ccbbc4ec Bug #1502750: Fix getargs "i" format to use LONG_MIN and LONG_MAX for bounds checking. 20 years ago
Thomas Wouters 49fd7fa443 Merge p3yk branch with the trunk up to revision 45595. This breaks a fair 20 years ago
Skip Montanaro b507972cdd C++ compiler cleanup: cast... 20 years ago
Martin v. Löwis 5cb6936672 Make Py_BuildValue, PyObject_CallFunction and 20 years ago
Neal Norwitz 615461603c SF Bug #1454485, array.array('u') could crash the interpreter when 20 years ago