Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-15999: Accept arbitrary values for boolean parameters. (#15609) | Serhiy Storchaka | 2022-12-03 | 1 | -5/+5 |
| | | | builtins and extension module functions and methods that expect boolean values for parameters now accept any Python object rather than just a bool or int type. This is more consistent with how native Python code itself behaves. | ||||
* | gh-90928: Improve static initialization of keywords tuple in AC (#95907) | Erlend E. Aasland | 2022-08-13 | 1 | -123/+39 |
| | |||||
* | gh-90928: Statically Initialize the Keywords Tuple in Clinic-Generated Code ↵ | Eric Snow | 2022-08-11 | 1 | -7/+211 |
| | | | | | | | | | | | | | | | | (gh-95860) We only statically initialize for core code and builtin modules. Extension modules still create the tuple at runtime. We'll solve that part of interpreter isolation separately. This change includes generated code. The non-generated changes are in: * Tools/clinic/clinic.py * Python/getargs.c * Include/cpython/modsupport.h * Makefile.pre.in (re-generate global strings after running clinic) * very minor tweaks to Modules/_codecsmodule.c and Python/Python-tokenize.c All other changes are generated code (clinic, global strings). | ||||
* | gh-91320: Argument Clinic uses _PyCFunction_CAST() (#32210) | Victor Stinner | 2022-05-03 | 1 | -11/+11 |
| | | | | Replace "(PyCFunction)(void(*)(void))func" cast with _PyCFunction_CAST(func). | ||||
* | gh-91583: AC: Fix regression for functions with defining_class (GH-91739) | Serhiy Storchaka | 2022-04-30 | 1 | -18/+15 |
| | | | | | Argument Clinic now generates the same efficient code as before adding the defining_class parameter. | ||||
* | bpo-46541: Remove usage of _Py_IDENTIFIER from multibytecodec (GH-31475) | Dong-hee Na | 2022-03-01 | 1 | -7/+65 |
| | |||||
* | bpo-37999: No longer use __int__ in implicit integer conversions. (GH-15636) | Serhiy Storchaka | 2020-05-26 | 1 | -11/+1 |
| | | | | Only __index__ should be used to make integer conversions lossless. | ||||
* | bpo-37034: Display argument name on errors with keyword arguments with ↵ | Rémi Lapeyre | 2019-08-29 | 1 | -7/+7 |
| | | | | Argument Clinic. (GH-13593) | ||||
* | bpo-36127: Argument Clinic: inline parsing code for keyword parameters. ↵ | Serhiy Storchaka | 2019-03-14 | 1 | -13/+107 |
| | | | | (GH-12058) | ||||
* | bpo-35582: Argument Clinic: Optimize the "all boring objects" case. (GH-11520) | Serhiy Storchaka | 2019-01-11 | 1 | -10/+19 |
| | | | | | 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 | -3/+3 |
| | | | | (GH-11313) | ||||
* | bpo-23867: Argument Clinic: inline parsing code for a single positional ↵ | Serhiy Storchaka | 2018-12-25 | 1 | -3/+7 |
| | | | | parameter. (GH-9689) | ||||
* | bpo-33012: Fix invalid function cast warnings with gcc 8 in Argument Clinic. ↵ | Serhiy Storchaka | 2018-11-27 | 1 | -8/+8 |
| | | | | | | | | (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-33578: Add getstate/setstate for CJK codec (GH-6984) | Christopher Thorne | 2018-11-01 | 1 | -1/+89 |
| | | | | | | | | This implements getstate and setstate for the cjkcodecs multibyte incremental encoders/decoders, primarily to fix issues with seek/tell. The encoder getstate/setstate is slightly tricky as the "state" is pending bytes + MultibyteCodec_State but only an integer can be returned. The approach I've taken is to encode this data into a long, similar to how .tell() encodes a "cookie_type" as a long. https://bugs.python.org/issue33578 | ||||
* | bpo-32240: Add the const qualifier to declarations of PyObject* array ↵ | Serhiy Storchaka | 2017-12-15 | 1 | -8/+8 |
| | | | | arguments. (#4746) | ||||
* | bpo-29464: Rename METH_FASTCALL to METH_FASTCALL|METH_KEYWORDS and make (#1955) | Serhiy Storchaka | 2017-07-03 | 1 | -20/+8 |
| | | | | | 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 | -13/+13 |
| | | | | | | | | 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". | ||||
* | Run Argument Clinic: METH_VARARGS=>METH_FASTCALL | Victor Stinner | 2017-01-17 | 1 | -10/+22 |
| | | | | | | | | Issue #29286. Run Argument Clinic to get the new faster METH_FASTCALL calling convention for functions using "boring" positional arguments. Manually fix _elementtree: _elementtree_XMLParser_doctype() must remain consistent with the clinic code. | ||||
* | Run Argument Clinic: METH_VARARGS=>METH_FASTCALL | Victor Stinner | 2017-01-17 | 1 | -1/+1 |
| | | | | | Issue #29286. Run Argument Clinic to get the new faster METH_FASTCALL calling convention for functions using only positional arguments. | ||||
* | Rename _PyArg_ParseStack to _PyArg_ParseStackAndKeywords | Victor Stinner | 2017-01-17 | 1 | -4/+4 |
| | | | | Issue #29286. | ||||
* | Issue #27810: Regenerate Argument Clinic. | Serhiy Storchaka | 2016-09-11 | 1 | -13/+13 |
| | |||||
* | Issue #27574: Decreased an overhead of parsing keyword arguments in functions | Serhiy Storchaka | 2016-08-14 | 1 | -9/+13 |
| | | | | implemented with using Argument Clinic. | ||||
* | Issue #26305: Argument Clinic now uses braces in C code as required by PEP 7. | Serhiy Storchaka | 2016-06-09 | 1 | -10/+19 |
| | |||||
* | Specify default values of semantic booleans in Argument Clinic generated ↵ | Serhiy Storchaka | 2015-05-30 | 1 | -3/+3 |
| | | | | signatures as booleans. | ||||
* | Issue #24007: Argument Clinic now writes the format of PyArg_Parse*() at the | Serhiy Storchaka | 2015-04-23 | 1 | -9/+5 |
| | | | | same line as function name. | ||||
* | Issue #23944: Argument Clinic now wraps long impl prototypes at column 78. | Larry Hastings | 2015-04-14 | 1 | -8/+19 |
| | |||||
* | Issue #20586: Argument Clinic now ensures signatures on functions without ↵ | Zachary Ware | 2015-04-13 | 1 | -13/+25 |
| | | | | docstrings. | ||||
* | Issue #20152: Convert _multibytecodecs to Argument Clinic. | Brett Cannon | 2014-08-22 | 1 | -0/+301 |