32 Commits (31a655411a79b00517cdcd0a2752824d183db792)

Author SHA1 Message Date
Serhiy Storchaka 31a655411a Issue #17576: Deprecation warning emitted now when __int__() or __index__() 12 years ago
Larry Hastings faf91e75ab Issue #14705: Add 'p' format character to PyArg_ParseTuple* for bool support. 14 years ago
Larry Hastings 83a9f48699 Issue #14328: Add keyword-only parameters to PyArg_ParseTupleAndKeywords. 14 years ago
Eli Bendersky 906b88fb2a Issue #12380: PyArg_ParseTuple now accepts a bytearray for the 'c' format. 15 years ago
Antoine Pitrou ad62b03949 Issue #10451: memoryview objects could allow to mutate a readable buffer. 15 years ago
Ezio Melotti 2623a37852 Merged revisions 86596 via svnmerge from 15 years ago
Ezio Melotti 19f2aeba67 Merged revisions 86596 via svnmerge from 15 years ago
Ezio Melotti b3aedd4862 #9424: Replace deprecated assert* methods in the Python test suite. 15 years ago
Victor Stinner 25e8ec4724 Issue #8850: Remove "w" and "w#" formats from PyArg_Parse*() functions, use 16 years ago
Victor Stinner 4aae1ebab2 Issue #8949: "z" format of PyArg_Parse*() functions doesn't accept bytes 16 years ago
Victor Stinner 06e49dd029 Issue #8592: PyArg_Parse*() functions raise a TypeError for "y", "u" and "Z" 16 years ago
Mark Dickinson c73013127b Issue #8950: Make PyArg_Parse* with 'L' code raise for float inputs, 16 years ago
Victor Stinner 93b5513cf1 Issue #6697: Fix a crash if a keyword contains a surrogate 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 1554b18b5a Merged revisions 76930 via svnmerge from 16 years ago
Mark Dickinson b5e348b305 Add missing tests for PyArg_Parse* with format 'h' 16 years ago
Mark Dickinson 5c2db37c20 Issue #7435: Remove duplicate int/long tests, and other 16 years ago
Georg Brandl ab91fdef1f Merged revisions 73715 via svnmerge from 17 years ago
Benjamin Peterson c9c0f201fe convert old fail* assertions to assert* 17 years ago
Benjamin Peterson 5c8da86f3a convert usage of fail* to assert* 17 years ago
Benjamin Peterson ee8712cda4 #2621 rename test.test_support to test.support 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
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 05e8be17fd Merged revisions 60990-61002 via svnmerge from 18 years ago
Christian Heimes c5f05e45cf Patch #2167 from calvin: Remove unused imports 18 years ago
Guido van Rossum e2a383d062 Rip out 'long' and 'L'-suffixed integer literals. 19 years ago
Thomas Wouters 0e3f591aee Merged revisions 46753-51188 via svnmerge from 20 years ago
Tim Peters 95621b25dc Whitespace normalization. 20 years ago
Georg Brandl 5f135787ec Part of bug #1523610: fix miscalculation of buffer length. 20 years ago
Thomas Wouters d8073285ff Fix newly merged test for p3ykness. 20 years ago
Thomas Wouters 49fd7fa443 Merge p3yk branch with the trunk up to revision 45595. This breaks a fair 20 years ago
Thomas Wouters c947123350 Fix tests for PyArg_Parse*; The PyArg_Parse functions no longer (noisily) 20 years ago
Tim Peters 8e6480ca02 Whitespace normalization. 20 years ago
Georg Brandl 7f573f7319 Add a test for Py_ssize_t. Correct typo in getargs.c. 20 years ago
Martin v. Löwis 6ce7ed23d0 Revert previous checkin on getargs 'L' code. Try to convert all 21 years ago
Walter Dörwald 21d3a32b99 Combine the functionality of test_support.run_unittest() 23 years ago
Thomas Heller 54aa5781d5 This test now uses the separate getargs_X functions from _testcapimodule. 23 years ago
Tim Peters 0eadaac7dc Whitespace normalization. 23 years ago
Guido van Rossum bbb931bebd Delete the 'h' test -- 'h' is no longer unsigned so the machinery here 23 years ago
Thomas Heller a4ea603b05 SF # 595026: support for masks in getargs.c. 23 years ago