221 Commits (e8f706eda77db200728fc436dca20f0591eeec27)

Author SHA1 Message Date
Antoine Pitrou c7c96a90bc Recorded merge of revisions 81029 via svnmerge from 16 years ago
Antoine Pitrou c83ea137d7 Untabify C files. Will watch buildbots. 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
Antoine Pitrou 72ec2e2bdf 14 years later, we still don't know what it's for. 16 years ago
Larry Hastings 402b73fb8d Backported PyCapsule from 3.1, and converted most uses of 16 years ago
Mark Dickinson de60401909 Merged revisions 77218 via svnmerge from 16 years ago
Mark Dickinson 1b34d2552c Issue #5080: turn the DeprecationWarning from float arguments passed 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
Sean Reifscheider 9279e7d177 - 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
Georg Brandl e9b912164b Merged revisions 71058,71149-71150,71212,71214-71216,71222,71225,71234,71237-71238,71240-71241,71243,71249,71251 via svnmerge from 17 years ago
Georg Brandl 6c59e72576 #5580: no need to use parentheses when converterr() argument is actually a type description. 17 years ago
Benjamin Peterson 7fe9853596 make 'c' only accept bytes and 'C' only unicode #5499 17 years ago
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