Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-15999: Accept arbitrary values for boolean parameters. (#15609) | Serhiy Storchaka | 2022-12-03 | 1 | -31/+31 |
| | | | 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 | -35/+15 |
| | |||||
* | gh-90928: Statically Initialize the Keywords Tuple in Clinic-Generated Code ↵ | Eric Snow | 2022-08-11 | 1 | -3/+75 |
| | | | | | | | | | | | | | | | | (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 | -41/+41 |
| | | | | Replace "(PyCFunction)(void(*)(void))func" cast with _PyCFunction_CAST(func). | ||||
* | bpo-45467: Fix IncrementalDecoder and StreamReader in the ↵ | Serhiy Storchaka | 2021-10-14 | 1 | -5/+13 |
| | | | | | | | | | "raw-unicode-escape" codec (GH-28944) They support now splitting escape sequences between input chunks. Add the third parameter "final" in codecs.raw_unicode_escape_decode(). It is True by default to match the former behavior. | ||||
* | bpo-45461: Fix IncrementalDecoder and StreamReader in the "unicode-escape" ↵ | Serhiy Storchaka | 2021-10-14 | 1 | -5/+13 |
| | | | | | | | | | codec (GH-28939) They support now splitting escape sequences between input chunks. Add the third parameter "final" in codecs.unicode_escape_decode(). It is True by default to match the former behavior. | ||||
* | bpo-41919, test_codecs: Move codecs.register calls to setUp() (GH-22513) | Hai Shi | 2020-10-16 | 1 | -38/+1 |
| | | | | * Move the codecs' (un)register operation to testcases. * Remove _codecs._forget_codec() and _PyCodec_Forget() | ||||
* | bpo-41842: Add codecs.unregister() function (GH-22360) | Hai Shi | 2020-09-28 | 1 | -1/+12 |
| | | | | Add codecs.unregister() and PyCodec_Unregister() functions to unregister a codec search function. | ||||
* | bpo-37999: No longer use __int__ in implicit integer conversions. (GH-15636) | Serhiy Storchaka | 2020-05-26 | 1 | -96/+1 |
| | | | | Only __index__ should be used to make integer conversions lossless. | ||||
* | bpo-37206: Unrepresentable default values no longer represented as None. ↵ | Serhiy Storchaka | 2019-09-14 | 1 | -3/+3 |
| | | | | | | | (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 | -84/+84 |
| | | | | Argument Clinic. (GH-13593) | ||||
* | bpo-36297: remove "unicode_internal" codec (GH-12342) | Inada Naoki | 2019-03-18 | 1 | -103/+1 |
| | |||||
* | bpo-36127: Argument Clinic: inline parsing code for keyword parameters. ↵ | Serhiy Storchaka | 2019-03-14 | 1 | -7/+83 |
| | | | | (GH-12058) | ||||
* | bpo-35582: Argument Clinic: inline parsing code for positional parameters. ↵ | Serhiy Storchaka | 2019-01-11 | 1 | -85/+1462 |
| | | | | (GH-11313) | ||||
* | bpo-23867: Argument Clinic: inline parsing code for a single positional ↵ | Serhiy Storchaka | 2018-12-25 | 1 | -5/+40 |
| | | | | parameter. (GH-9689) | ||||
* | bpo-33012: Fix invalid function cast warnings with gcc 8 in Argument Clinic. ↵ | Serhiy Storchaka | 2018-11-27 | 1 | -43/+43 |
| | | | | | | | | (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-32240: Add the const qualifier to declarations of PyObject* array ↵ | Serhiy Storchaka | 2017-12-15 | 1 | -43/+43 |
| | | | | arguments. (#4746) | ||||
* | bpo-29464: Rename METH_FASTCALL to METH_FASTCALL|METH_KEYWORDS and make (#1955) | Serhiy Storchaka | 2017-07-03 | 1 | -203/+43 |
| | | | | | 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 | -121/+121 |
| | | | | | | | | 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 | -121/+281 |
| | | | | | 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 | -2/+2 |
| | | | | Issue #29286. | ||||
* | Issue #27810: Rerun Argument Clinic on all modules | Victor Stinner | 2016-09-09 | 1 | -7/+7 |
| | |||||
* | Issue #27781: Change file system encoding on Windows to UTF-8 (PEP 529) | Steve Dower | 2016-09-08 | 1 | -13/+13 |
| | |||||
* | Issue #27959: Adds oem encoding, alias ansi to mbcs, move aliasmbcs to codec ↵ | Steve Dower | 2016-09-06 | 1 | -1/+80 |
| | | | | lookup | ||||
* | Issue #27574: Decreased an overhead of parsing keyword arguments in functions | Serhiy Storchaka | 2016-08-14 | 1 | -5/+7 |
| | | | | implemented with using Argument Clinic. | ||||
* | - Issue #27332: Fixed the type of the first argument of module-level functions | Serhiy Storchaka | 2016-07-07 | 1 | -91/+90 |
|\ | | | | | | | 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 | -91/+90 |
| | | | | | | | | generated by Argument Clinic. Patch by Petr Viktorin. | ||||
* | | Issue #26305: Argument Clinic now uses braces in C code as required by PEP 7. | Serhiy Storchaka | 2016-06-09 | 1 | -64/+127 |
| | | |||||
* | | Issues #26716, #26057: Regenerate Argument Clinic code. | Serhiy Storchaka | 2016-04-14 | 1 | -16/+16 |
|/ | |||||
* | Issue #24824: Signatures of codecs.encode() and codecs.decode() now are | Serhiy Storchaka | 2015-08-09 | 1 | -7/+5 |
| | | | | compatible with pydoc. | ||||
* | Issue #20173: Converted the _codecs module to Argument Clinic. | Serhiy Storchaka | 2015-05-12 | 1 | -1/+1369 |
| | |||||
* | Issue #24007: Argument Clinic now writes the format of PyArg_Parse*() at the | Serhiy Storchaka | 2015-04-24 | 1 | -4/+2 |
| | | | | same line as function name. | ||||
* | Issue #23492: Argument Clinic now generates argument parsing code with | Serhiy Storchaka | 2015-04-04 | 1 | -4/+4 |
| | | | | PyArg_Parse instead of PyArg_ParseTuple if possible. | ||||
* | Issue #23501: Argumen Clinic now generates code into separate files by default. | Serhiy Storchaka | 2015-04-03 | 1 | -0/+32 |