Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-40792: Make the result of PyNumber_Index() always having exact type int. ↵ | Serhiy Storchaka | 2020-05-28 | 1 | -1/+1 |
| | | | | | | | | | | | | (GH-20443) Previously, the result could have been an instance of a subclass of int. Also revert bpo-26202 and make attributes start, stop and step of the range object having exact type int. Add private function _PyNumber_Index() which preserves the old behavior of PyNumber_Index() for performance to use it in the conversion functions like PyLong_AsLong(). | ||||
* | bpo-37999: No longer use __int__ in implicit integer conversions. (GH-15636) | Serhiy Storchaka | 2020-05-26 | 1 | -52/+2 |
| | | | | Only __index__ should be used to make integer conversions lossless. | ||||
* | bpo-38787: Fix Argument Clinic defining_class_converter (GH-20074) | Victor Stinner | 2020-05-13 | 1 | -2/+7 |
| | | | | | | | Don't hardcode defining_class parameter name to "cls": * Define CConverter.set_template_dict(): do nothing by default * CLanguage.render_function() now calls set_template_dict() on all converters. | ||||
* | bpo-38787: C API for module state access from extension methods (PEP 573) ↵ | Petr Viktorin | 2020-05-07 | 1 | -6/+58 |
| | | | | | | | | | (GH-19936) Module C state is now accessible from C-defined heap type methods (PEP 573). Patch by Marcel Plch and Petr Viktorin. Co-authored-by: Marcel Plch <mplch@redhat.com> Co-authored-by: Victor Stinner <vstinner@python.org> | ||||
* | bpo-40179: Fix translation of #elif in Argument Clinic (GH-19364) | Serhiy Storchaka | 2020-04-18 | 1 | -21/+16 |
| | | | | Co-authored-by: Ammar Askar <ammar@ammaraskar.com> | ||||
* | bpo-39573: Update clinic to use Py_IS_TYPE() function (GH-18507) | Dong-hee Na | 2020-02-14 | 1 | -9/+6 |
| | |||||
* | argument-clinic: Simplify multi-line string handling (GH-17852) | Dong-hee Na | 2020-01-06 | 1 | -2/+2 |
| | |||||
* | bpo-27961: Replace PY_LONG_LONG with long long. (GH-15386) | Sergey Fedoseev | 2019-10-21 | 1 | -1/+1 |
| | |||||
* | bpo-37206: Unrepresentable default values no longer represented as None. ↵ | Serhiy Storchaka | 2019-09-14 | 1 | -7/+6 |
| | | | | | | | (GH-13933) In ArgumentClinic, value "NULL" should now be used only for unrepresentable default values (like in the optional third parameter of getattr). "None" should be used if None is accepted as argument and passing None has the same effect as not passing the argument at all. | ||||
* | bpo-37034: Display argument name on errors with keyword arguments with ↵ | Rémi Lapeyre | 2019-08-29 | 1 | -80/+101 |
| | | | | Argument Clinic. (GH-13593) | ||||
* | bpo-37942: Improve argument clinic float converter (GH-15470) | Raymond Hettinger | 2019-08-25 | 1 | -6/+18 |
| | |||||
* | Add description to the command line help of the argument clinic (GH-8518) | Tim Hoffmann | 2019-06-02 | 1 | -1/+8 |
| | |||||
* | bpo-36127: Argument Clinic: inline parsing code for keyword parameters. ↵ | Serhiy Storchaka | 2019-03-14 | 1 | -49/+147 |
| | | | | (GH-12058) | ||||
* | bpo-36048: Use __index__() instead of __int__() for implicit conversion if ↵ | Serhiy Storchaka | 2019-02-25 | 1 | -0/+2 |
| | | | | | | available. (GH-11952) Deprecate using the __int__() method in implicit conversions of Python numbers to C integers. | ||||
* | bpo-36101: remove non-ascii characters in docstring (GH-12018) | animalize | 2019-02-24 | 1 | -0/+3 |
| | | | | | * remove non-ascii characters in docstring * clinic.py emits a warning when docstring has non-ascii character | ||||
* | bpo-35582: Argument Clinic: Optimize the "all boring objects" case. (GH-11520) | Serhiy Storchaka | 2019-01-11 | 1 | -40/+0 |
| | | | | | Use _PyArg_CheckPositional() and inlined code instead of PyArg_UnpackTuple() and _PyArg_UnpackStack() if all parameters are positional and use the "object" converter. | ||||
* | bpo-35582: Argument Clinic: inline parsing code for positional parameters. ↵ | Serhiy Storchaka | 2019-01-11 | 1 | -86/+163 |
| | | | | (GH-11313) | ||||
* | bpo-23867: Argument Clinic: inline parsing code for a single positional ↵ | Serhiy Storchaka | 2018-12-25 | 1 | -16/+433 |
| | | | | parameter. (GH-9689) | ||||
* | bpo-20180: Simplify char_converter in Argument Clinic. (GH-9828) | Serhiy Storchaka | 2018-12-25 | 1 | -18/+3 |
| | | | Fix also handling non-ascii default values. | ||||
* | bpo-35490: Remove the DecodeFSDefault return converter in AC. (#11152) | Serhiy Storchaka | 2018-12-17 | 1 | -10/+0 |
| | |||||
* | bpo-35489: Use "const Py_UNICODE *" for the Py_UNICODE converter in AC. ↵ | Serhiy Storchaka | 2018-12-14 | 1 | -1/+1 |
| | | | | (GH-11150) | ||||
* | bpo-33012: Fix invalid function cast warnings with gcc 8 in Argument Clinic. ↵ | Serhiy Storchaka | 2018-11-27 | 1 | -1/+7 |
| | | | | | | | | (GH-6748) Fix invalid function cast warnings with gcc 8 for method conventions different from METH_NOARGS, METH_O and METH_VARARGS in Argument Clinic generated code. | ||||
* | bpo-32892: Use ast.Constant instead of specific constant AST types. (GH-9445) | Serhiy Storchaka | 2018-09-27 | 1 | -5/+12 |
| | |||||
* | Remove wording that could be deemed to be perjorative (GH-9287) | Raymond Hettinger | 2018-09-14 | 1 | -1/+1 |
| | |||||
* | bpo-26901: Fix the Argument Clinic test suite (GH-8879) | Victor Stinner | 2018-09-03 | 1 | -791/+0 |
| | | | | | | | | | | * Fix Tools/clinic/clinic_test.py: add missing FakeClinic.destination_buffers attribute and pass a file argument to Clinic(). * Rename Tools/clinic/clinic_test.py to Lib/test/test_clinic.py: add temporary Tools/clinic/ to sys.path to import the clinic module. Co-Authored-By: Pablo Galindo <pablogsal@gmail.com> | ||||
* | bpo-20260: Implement non-bitwise unsigned int converters for Argument ↵ | Serhiy Storchaka | 2018-07-26 | 1 | -13/+21 |
| | | | | Clinic. (GH-8434) | ||||
* | bpo-20180: complete AC conversion of Objects/stringlib/transmogrify.h (GH-8039) | Tal Einat | 2018-07-06 | 1 | -2/+22 |
| | | | | * converted bytes methods: expandtabs, ljust, rjust, center, zfill * updated char_convertor to properly set the C default value | ||||
* | bpo-32240: Add the const qualifier to declarations of PyObject* array ↵ | Serhiy Storchaka | 2017-12-15 | 1 | -2/+2 |
| | | | | arguments. (#4746) | ||||
* | bpo-31926: fix missing *_METHODDEF statements by argument clinic (#4230) | Tal Einat | 2017-11-03 | 1 | -2/+2 |
| | | | | | | | | | When a single .c file contains several functions and/or methods with the same name, a safety _METHODDEF #define statement is generated only for one of them. This fixes the bug by using the full name of the function to avoid duplicates rather than just the name. | ||||
* | bpo-29464: Rename METH_FASTCALL to METH_FASTCALL|METH_KEYWORDS and make (#1955) | Serhiy Storchaka | 2017-07-03 | 1 | -10/+7 |
| | | | | | the bare METH_FASTCALL be used for functions with positional-only parameters. | ||||
* | bpo-30600: Fix error messages (condition order in Argument Clinic) (#2051) | Sylvain | 2017-06-10 | 1 | -7/+7 |
| | | | | | | | | The function '_PyArg_ParseStack()' and '_PyArg_UnpackStack' were failing (with error "XXX() takes Y argument (Z given)") before the function '_PyArg_NoStackKeywords()' was called. Thus, the latter did not raise its more meaningful error : "XXX() takes no keyword arguments". | ||||
* | bpo-30492: Allow make clinic to work out of tree. (#1836) | Gregory P. Smith | 2017-05-27 | 1 | -2/+10 |
| | | | | | | * bpo-30492: Allow make clinic to work out of tree. * Use os.curdir instead of "." as the default value. | ||||
* | bpo-29935: Fixed error messages in the index() method of tuple, list and ↵ | Serhiy Storchaka | 2017-03-30 | 1 | -2/+2 |
| | | | | | deque (#887) when pass indices of wrong type. | ||||
* | bpo-29852: Argument Clinic Py_ssize_t converter now supports None (#716) | Serhiy Storchaka | 2017-03-30 | 1 | -2/+10 |
| | | | if pass `accept={int, NoneType}`. | ||||
* | bpo-29919: Remove unused imports found by pyflakes (#137) | Victor Stinner | 2017-03-27 | 1 | -2/+0 |
| | | | Make also minor PEP8 coding style fixes on modified imports. | ||||
* | bpo-29748: Added the slice index converter in Argument Clinic. (#549) | Serhiy Storchaka | 2017-03-19 | 1 | -0/+12 |
| | |||||
* | bpo-24037: Add Argument Clinic converter `bool(accept={int})`. (#485) | Serhiy Storchaka | 2017-03-12 | 1 | -1/+5 |
| | |||||
* | bpo-20185: Convert float object implementation to Argument Clinic. (#543) | Serhiy Storchaka | 2017-03-11 | 1 | -1/+0 |
| | | | Based on patch by Vajrasky Kok. | ||||
* | Argument Clinic: Use METH_FASTCALL for boring positionals | Victor Stinner | 2017-01-17 | 1 | -9/+25 |
| | | | | | | | | Issue #29286. Use METH_FASTCALL calling convention instead of METH_VARARGS to parse "boring" position arguments. METH_FASTCALL is faster since it avoids the creation of a temporary tuple to pass positional arguments. Replace PyArg_UnpackTuple() with _PyArg_UnpackStack()+_PyArg_NoStackKeywords(). | ||||
* | Argument Clinic: Use METH_FASTCALL for positionals | Victor Stinner | 2017-01-17 | 1 | -14/+32 |
| | | | | | | Issue #29286. Use METH_FASTCALL calling convention instead of METH_VARARGS to parse position arguments. METH_FASTCALL is faster since it avoids the creation of a temporary tuple to pass positional arguments. | ||||
* | Rename _PyArg_ParseStack to _PyArg_ParseStackAndKeywords | Victor Stinner | 2017-01-17 | 1 | -1/+1 |
| | | | | Issue #29286. | ||||
* | Emit METH_FASTCALL code in Argument Clinic | Victor Stinner | 2016-09-10 | 1 | -0/+18 |
| | | | | | | | | | Issue #27810: * Modify vgetargskeywordsfast() to work on a C array of PyObject* rather than working on a tuple directly. * Add _PyArg_ParseStack() * Argument Clinic now emits code using the new METH_FASTCALL calling convention | ||||
* | #27364: fix "incorrect" uses of escape character in the stdlib. | R David Murray | 2016-09-08 | 1 | -1/+1 |
| | | | | | | | And most of the tools. Patch by Emanual Barry, reviewed by me, Serhiy Storchaka, and Martin Panter. | ||||
* | clinic: PY_LONG_LONG -> long long | Benjamin Peterson | 2016-09-08 | 1 | -5/+5 |
| | |||||
* | Issue #27574: Decreased an overhead of parsing keyword arguments in functions | Serhiy Storchaka | 2016-08-14 | 1 | -8/+6 |
| | | | | implemented with using Argument Clinic. | ||||
* | Issue #27626: Merge spelling fixes from 3.5 | Martin Panter | 2016-07-28 | 1 | -1/+1 |
|\ | |||||
| * | Issue #27626: Spelling fixes in docs, comments and internal names | Martin Panter | 2016-07-28 | 1 | -1/+1 |
| | | | | | | | | Based on patch by Ville Skyttä. | ||||
* | | - Issue #27332: Fixed the type of the first argument of module-level functions | Serhiy Storchaka | 2016-07-07 | 1 | -1/+1 |
|\ \ | |/ | | | | | generated by Argument Clinic. Patch by Petr Viktorin. | ||||
| * | Issue #27332: Fixed the type of the first argument of module-level functions | Serhiy Storchaka | 2016-07-07 | 1 | -1/+1 |
| | | | | | | | | generated by Argument Clinic. Patch by Petr Viktorin. | ||||
* | | Issue #26282: PyArg_ParseTupleAndKeywords() and Argument Clinic now support | Serhiy Storchaka | 2016-06-09 | 1 | -26/+25 |
| | | | | | | | | positional-only and keyword parameters in the same function. |