197 Commits (bbe2f60b3c19ecaa02ca07be14474eaacfcb59a0)

Author SHA1 Message Date
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. 19 years ago
Guido van Rossum b08340053c Fix error messages for buffer objects to say "bytes" instead of "string". 19 years ago
Guido van Rossum 98297ee781 Merging the py3k-pep3137 branch back into the py3k branch. 19 years ago
Georg Brandl e1a0d11c5c #1316: remove redundant PyLong_Check calls when PyInt_Check was already called. 19 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
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
Thomas Wouters 0e3f591aee Merged revisions 46753-51188 via svnmerge from 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
Thomas Wouters 49fd7fa443 Merge p3yk branch with the trunk up to revision 45595. This breaks a fair 20 years ago
Guido van Rossum 45aecf451a Checkpoint. 218 tests are okay; 53 are failing. Done so far: 20 years ago
Thomas Wouters c3547a311e Fix C99-ism, and add XXX to comment 20 years ago
Thomas Wouters 572a9f32dc Use %zd format characters for Py_ssize_t types. 20 years ago
Martin v. Löwis 762467475d Use Py_ssize_t for PyArg_UnpackTuple arguments. 20 years ago
Martin v. Löwis 15e62742fa Revert backwards-incompatible const changes. 20 years ago
Neal Norwitz 9a27617239 Based on discussion with Martin and Thomas on python-checkins 20 years ago
Neal Norwitz 20dd93f427 Fix compiler warning on amd64. We can't use zd here since this is 20 years ago
Martin v. Löwis d96ee90993 Use Py_ssize_t to count the 20 years ago
Martin v. Löwis 18e165558b Merge ssize_t branch. 20 years ago
Georg Brandl d704817b66 typo 20 years ago
Neal Norwitz 4ac13dfc3a Remove extra parens 20 years ago
Neal Norwitz 30b5c5d011 Fix SF bug #1072182, problems with signed characters. 20 years ago
Jeremy Hylton af68c874a6 Add const to several API functions that take char *. 20 years ago
Georg Brandl 6dd14619bb Complete format code support in getargs.c::skipitem(), which is called when 21 years ago
Georg Brandl 02c42871cf Disallow keyword arguments for type constructors that don't use them. 21 years ago
Michael W. Hudson 5253c30791 I suppose a bug report or even a fix would be a better response, but 21 years ago
Martin v. Löwis 6ce7ed23d0 Revert previous checkin on getargs 'L' code. Try to convert all 21 years ago