Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-40943: Fix skipitem() didn't raise SystemError (GH-25937) | Inada Naoki | 2021-05-07 | 1 | -0/+7 |
| | | | | `convertitem()` raises `SystemError` when '#' is used without `PY_SSIZE_T_CLEAN`. This commit makes `skipitem()` raise it too. | ||||
* | bpo-36346: Emit DeprecationWarning for PyArg_Parse() with 'u' or 'Z'. (GH-20927) | Inada Naoki | 2021-02-22 | 1 | -24/+59 |
| | | | | | Emit DeprecationWarning when PyArg_Parse*() is called with 'u', 'Z' format. See PEP 623. | ||||
* | bpo-36346: Make using the legacy Unicode C API optional (GH-21437) | Serhiy Storchaka | 2020-07-10 | 1 | -0/+4 |
| | | | | Add compile time option USE_UNICODE_WCHAR_CACHE. Setting it to 0 makes the interpreter not using the wchar_t cache and the legacy Unicode C API. | ||||
* | bpo-40275: Use new test.support helper submodules in tests (GH-21412) | Hai Shi | 2020-07-09 | 1 | -1/+2 |
| | |||||
* | bpo-37999: No longer use __int__ in implicit integer conversions. (GH-15636) | Serhiy Storchaka | 2020-05-26 | 1 | -32/+16 |
| | | | | Only __index__ should be used to make integer conversions lossless. | ||||
* | bpo-20092. Use __index__ in constructors of int, float and complex. (GH-13108) | Serhiy Storchaka | 2019-06-01 | 1 | -0/+6 |
| | |||||
* | bpo-36048: Use __index__() instead of __int__() for implicit conversion if ↵ | Serhiy Storchaka | 2019-02-25 | 1 | -8/+101 |
| | | | | | | available. (GH-11952) Deprecate using the __int__() method in implicit conversions of Python numbers to C integers. | ||||
* | bpo-34193: Fix pluralization in getargs.c and test cases. (GH-8438) | Xtreak | 2018-12-21 | 1 | -4/+4 |
| | |||||
* | bpo-34272: Move argument parsing tests from test_capi to test_getargs2. ↵ | Serhiy Storchaka | 2018-08-06 | 1 | -1/+179 |
| | | | | (GH-8567) | ||||
* | bpo-31373: remove overly strict float range checks (#3486) | Benjamin Peterson | 2017-09-11 | 1 | -0/+6 |
| | | | | | This undoes a853a8ba7850381d49b284295dd6f0dc491dbe44 except for the pytime.c parts. We want to continue to allow IEEE 754 doubles larger than FLT_MAX to be rounded into finite floats. Tests were added to very this behavior. | ||||
* | bpo-29951: Include function name for some error messages in ↵ | Michael Seifert | 2017-04-09 | 1 | -6/+7 |
| | | | | | | | `PyArg_ParseTuple*` (#916) Also changed format specifier for function name from "%s" to "%.200s" and exception messages should start with lowercase letter. | ||||
* | bpo-29894: Deprecate returning an instance of complex subclass from ↵ | Serhiy Storchaka | 2017-03-24 | 1 | -1/+2 |
| | | | | | __complex__. (#798) In a future versions of Python this can be an error. | ||||
* | Issue #28086: Single var-positional argument of tuple subtype was passed | Serhiy Storchaka | 2016-09-22 | 1 | -1/+1 |
| | | | | unscathed to the C-defined function. Now it is converted to exact tuple. | ||||
* | Fixes test_getargs2 to get the buildbots working again. | Steve Dower | 2016-09-12 | 1 | -1/+1 |
| | |||||
* | #27364: fix "incorrect" uses of escape character in the stdlib. | R David Murray | 2016-09-08 | 1 | -6/+6 |
| | | | | | | | And most of the tools. Patch by Emanual Barry, reviewed by me, Serhiy Storchaka, and Martin Panter. | ||||
* | more PY_LONG_LONG to long long | Benjamin Peterson | 2016-09-08 | 1 | -5/+0 |
| | |||||
* | Issue #26282: PyArg_ParseTupleAndKeywords() and Argument Clinic now support | Serhiy Storchaka | 2016-06-09 | 1 | -0/+33 |
| | | | | positional-only and keyword parameters in the same function. | ||||
* | Issue #26983: float() now always return an instance of exact float. | Serhiy Storchaka | 2016-06-03 | 1 | -2/+4 |
| | | | | | | The deprecation warning is emitted if __float__ returns an instance of a strict subclass of float. In a future versions of Python this can be an error. | ||||
* | Issue #26995: Added tests for "f", "d", "D", "S", "Y", and "U" format codes | Serhiy Storchaka | 2016-05-16 | 1 | -1/+159 |
|\ | | | | | | | in PyArg_ParseTuple(). | ||||
| * | Issue #26995: Added tests for "f", "d", "D", "S", "Y", and "U" format codes | Serhiy Storchaka | 2016-05-16 | 1 | -1/+159 |
| | | | | | | | | in PyArg_ParseTuple(). | ||||
| * | Backported tests for issue #18531. | Serhiy Storchaka | 2016-05-16 | 1 | -0/+56 |
| | | |||||
* | | Issue #18531: Single var-keyword argument of dict subtype was passed | Serhiy Storchaka | 2016-05-08 | 1 | -0/+56 |
| | | | | | | | | unscathed to the C-defined function. Now it is converted to exact dict. | ||||
* | | Issue #26198: ValueError is now raised instead of TypeError on buffer | Serhiy Storchaka | 2016-02-07 | 1 | -4/+4 |
|/ | | | | | overflow in parsing "es#" and "et#" format units. SystemError is now raised instead of TypeError on programmical error in parsing format string. | ||||
* | Issue #26198: Added tests for "es", "et", "es#", "et#" and "C" format units | Serhiy Storchaka | 2016-01-28 | 1 | -42/+135 |
| | | | | of PyArg_Parse*() functions. | ||||
* | Issue #22883: Got rid of outdated references to PyInt and PyString in comments. | Serhiy Storchaka | 2015-02-17 | 1 | -2/+2 |
| | |||||
* | Issue #22215: Now ValueError is raised instead of TypeError when str or bytes | Serhiy Storchaka | 2014-09-06 | 1 | -5/+5 |
| | | | | argument contains not permitted null character or byte. | ||||
* | Issue #20532: Tests which use _testcapi now are marked as CPython only. | Serhiy Storchaka | 2014-02-07 | 1 | -0/+2 |
|\ | |||||
| * | Issue #20532: Tests which use _testcapi now are marked as CPython only. | Serhiy Storchaka | 2014-02-07 | 1 | -0/+2 |
| | | |||||
| * | Issue #17576: Removed deprecation warnings added in changeset 618cca51a27e. | Serhiy Storchaka | 2013-12-14 | 1 | -16/+8 |
| | | |||||
* | | Issue #17576: Deprecation warning emitted now when __int__() or __index__() | Serhiy Storchaka | 2013-12-11 | 1 | -0/+70 |
|\ \ | |/ | | | | | | | return not int instance. Introduced _PyLong_FromNbInt() and refactored PyLong_As*() functions. | ||||
| * | Issue #17576: Deprecation warning emitted now when __int__() or __index__() | Serhiy Storchaka | 2013-12-11 | 1 | -0/+70 |
| | | | | | | | | | | return not int instance. Introduced _PyLong_FromNbInt() and refactored PyLong_As*() functions. | ||||
* | | Update various test modules to use unittest.main() for test discovery | Brett Cannon | 2013-06-13 | 1 | -20/+6 |
| | | | | | | | | instead of manually listing tests for test.support.run_unittest(). | ||||
* | | Issue #17516: use comment syntax for comments, instead of multiline string | Victor Stinner | 2013-03-26 | 1 | -31/+29 |
|/ | |||||
* | Issue #14705: Add 'p' format character to PyArg_ParseTuple* for bool support. | Larry Hastings | 2012-05-05 | 1 | -0/+31 |
| | |||||
* | Issue #14328: Add keyword-only parameters to PyArg_ParseTupleAndKeywords. | Larry Hastings | 2012-03-20 | 1 | -1/+73 |
| | | | | | | They're optional-only for now (unlike in pure Python) but that's all I needed. The syntax can easily be relaxed if we want to support required keyword-only arguments for extension types in the future. | ||||
* | Issue #12380: PyArg_ParseTuple now accepts a bytearray for the 'c' format. | Eli Bendersky | 2011-07-29 | 1 | -0/+9 |
| | | | | | | | As a side effect, this now allows the rjust, ljust and center methods of bytes and bytearray to accept a bytearray argument. Patch by Petri Lehtinen | ||||
* | Issue #10451: memoryview objects could allow to mutate a readable buffer. | Antoine Pitrou | 2011-01-18 | 1 | -1/+3 |
| | | | | Initial patch by Ross Lagerwall. | ||||
* | #9424: Replace deprecated assert* methods in the Python test suite. | Ezio Melotti | 2010-11-20 | 1 | -9/+9 |
| | |||||
* | Issue #8850: Remove "w" and "w#" formats from PyArg_Parse*() functions, use | Victor Stinner | 2010-06-25 | 1 | -0/+10 |
| | | | | "w*" format instead. Add tests for "w*" format. | ||||
* | Issue #8949: "z" format of PyArg_Parse*() functions doesn't accept bytes | Victor Stinner | 2010-06-24 | 1 | -1/+1 |
| | | | | objects, as described in the documentation. | ||||
* | Issue #8592: PyArg_Parse*() functions raise a TypeError for "y", "u" and "Z" | Victor Stinner | 2010-06-13 | 1 | -1/+129 |
| | | | | | formats if the string contains a null byte/character. Write unit tests for string formats. | ||||
* | Issue #8950: Make PyArg_Parse* with 'L' code raise for float inputs, | Mark Dickinson | 2010-06-10 | 1 | -16/+1 |
| | | | | | instead of warning. This makes it consistent with the other integer codes. | ||||
* | Issue #6697: Fix a crash if a keyword contains a surrogate | Victor Stinner | 2010-05-19 | 1 | -0/+14 |
| | |||||
* | Merged revisions 77218 via svnmerge from | Mark Dickinson | 2010-01-01 | 1 | -11/+17 |
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r77218 | mark.dickinson | 2010-01-01 17:27:30 +0000 (Fri, 01 Jan 2010) | 5 lines Issue #5080: turn the DeprecationWarning from float arguments passed to integer PyArg_Parse* format codes into a TypeError. Add a DeprecationWarning for floats passed with the 'L' format code, which didn't previously have a warning. ........ | ||||
* | Merged revisions 76930 via svnmerge from | Mark Dickinson | 2009-12-20 | 1 | -1/+16 |
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r76930 | mark.dickinson | 2009-12-20 15:57:56 +0000 (Sun, 20 Dec 2009) | 1 line Add missing tests for PyArg_Parse* with format 'h' ........ | ||||
* | Issue #7435: Remove duplicate int/long tests, and other | Mark Dickinson | 2009-12-05 | 1 | -25/+0 |
| | | | | references to long in py3k. Patch provided by flox. | ||||
* | convert old fail* assertions to assert* | Benjamin Peterson | 2009-06-30 | 1 | -71/+71 |
| | |||||
* | #2621 rename test.test_support to test.support | Benjamin Peterson | 2008-05-20 | 1 | -2/+2 |
| | |||||
* | Issue 2440: remove the guard around the handling of case 'n' in getargs.c's ↵ | Trent Nelson | 2008-04-22 | 1 | -2/+2 |
| | | | | 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. | ||||
* | Issue 2440: revert r62269 and r62279. These changes were made in an effort ↵ | Trent Nelson | 2008-04-11 | 1 | -5/+0 |
| | | | | 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. |