Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gh-100776: Fix misleading default value in help(input) (#100788) | Shantanu | 2023-01-08 | 1 | -2/+2 |
| | |||||
* | gh-100357: Convert several functions in `bltinsmodule` to AC (#100358) | Nikita Sobolev | 2022-12-24 | 1 | -1/+195 |
| | |||||
* | bpo-15999: Accept arbitrary values for boolean parameters. (#15609) | Serhiy Storchaka | 2022-12-03 | 1 | -3/+3 |
| | | | 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-96526: Clarify format and __format__ docstrings (gh-96648) | Michael | 2022-10-03 | 1 | -5/+8 |
| | |||||
* | Fix typos in `bltinmodule.c`. (GH-97766) | Nikita Sobolev | 2022-10-03 | 1 | -5/+5 |
| | |||||
* | gh-90928: Improve static initialization of keywords tuple in AC (#95907) | Erlend E. Aasland | 2022-08-13 | 1 | -120/+50 |
| | |||||
* | gh-90928: Statically Initialize the Keywords Tuple in Clinic-Generated Code ↵ | Eric Snow | 2022-08-11 | 1 | -8/+245 |
| | | | | | | | | | | | | | | | | (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-92203: Add closure support to exec(). (#92204) | larryhastings | 2022-05-06 | 1 | -11/+26 |
| | | | Add a closure keyword-only parameter to exec(). It can only be specified when exec-ing a code object that uses free variables. When specified, it must be a tuple, with exactly the number of cell variables referenced by the code object. closure has a default value of None, and it must be None if the code object doesn't refer to any free variables. | ||||
* | gh-91320: Argument Clinic uses _PyCFunction_CAST() (#32210) | Victor Stinner | 2022-05-03 | 1 | -18/+18 |
| | | | | Replace "(PyCFunction)(void(*)(void))func" cast with _PyCFunction_CAST(func). | ||||
* | Use FASTCALL for __import__ (GH-31752) | Kumar Aditya | 2022-03-11 | 1 | -1/+80 |
| | |||||
* | bpo-20201: variadic arguments support for AC (GH-18609) | Batuhan Taskaya | 2021-07-16 | 1 | -1/+75 |
| | | | Implement support for `*args` in AC, and port `print()` to use it. | ||||
* | bpo-43918: document signature and default argument of `anext` builtin (#25551) | Erik Welch | 2021-06-22 | 1 | -2/+5 |
| | | | Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com> | ||||
* | bpo-31861: Add aiter and anext to builtins (#23847) | Joshua Bronson | 2021-03-23 | 1 | -1/+45 |
| | | | | | | Co-authored-by: jab <jab@users.noreply.github.com> Co-authored-by: Daniel Pope <mauve@mauveweb.co.uk> Co-authored-by: Justin Wang <justin39@gmail.com> | ||||
* | bpo-40471: Fix grammar typo in 'issubclass' docstring (GH-19847) | Alex Povel | 2020-06-03 | 1 | -3/+3 |
| | | | | | Just a brief grammar fix. See also <>. | ||||
* | bpo-37999: No longer use __int__ in implicit integer conversions. (GH-15636) | Serhiy Storchaka | 2020-05-26 | 1 | -26/+1 |
| | | | | Only __index__ should be used to make integer conversions lossless. | ||||
* | Shorter docstring (GH-16322) | Raymond Hettinger | 2019-09-21 | 1 | -2/+2 |
| | |||||
* | bpo-38237: Make pow's arguments have more descriptive names and be keyword ↵ | Ammar Askar | 2019-09-20 | 1 | -18/+24 |
| | | | | | | | | | | | | passable (GH-16302) Edit: `math.pow` changes removed on Mark's request. https://bugs.python.org/issue38237 Automerge-Triggered-By: @rhettinger | ||||
* | bpo-37206: Unrepresentable default values no longer represented as None. ↵ | Serhiy Storchaka | 2019-09-14 | 1 | -2/+2 |
| | | | | | | | (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 | -3/+3 |
| | | | | Argument Clinic. (GH-13593) | ||||
* | bpo-35766: compile(): rename feature_version parameter (GH-13994) | Victor Stinner | 2019-06-12 | 1 | -5/+9 |
| | | | | | | Rename compile() feature_version parameter to _feature_version and convert it to a keyword-only parameter. Update also test_type_comments to pass feature_version as a tuple. | ||||
* | bpo-36127: Argument Clinic: inline parsing code for keyword parameters. ↵ | Serhiy Storchaka | 2019-03-14 | 1 | -10/+100 |
| | | | | (GH-12058) | ||||
* | bpo-35975: Support parsing earlier minor versions of Python 3 (GH-12086) | Guido van Rossum | 2019-03-07 | 1 | -7/+8 |
| | | | | | | | This adds a `feature_version` flag to `ast.parse()` (documented) and `compile()` (hidden) that allow tweaking the parser to support older versions of the grammar. In particular if `feature_version` is 5 or 6, the hacks for the `async` and `await` keyword from PEP 492 are reinstated. (For 7 or higher, these are unconditionally treated as keywords, but they are still special tokens rather than `NAME` tokens that the parser driver recognizes.) https://bugs.python.org/issue35975 | ||||
* | bpo-35582: Argument Clinic: Optimize the "all boring objects" case. (GH-11520) | Serhiy Storchaka | 2019-01-11 | 1 | -31/+56 |
| | | | | | 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/+15 |
| | | | | (GH-11313) | ||||
* | bpo-23867: Argument Clinic: inline parsing code for a single positional ↵ | Serhiy Storchaka | 2018-12-25 | 1 | -2/+8 |
| | | | | parameter. (GH-9689) | ||||
* | bpo-33012: Fix invalid function cast warnings with gcc 8 in Argument Clinic. ↵ | Serhiy Storchaka | 2018-11-27 | 1 | -15/+15 |
| | | | | | | | | (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-34637: Make the *start* argument for *sum()* visible as a keyword ↵ | Raymond Hettinger | 2018-09-12 | 1 | -6/+7 |
| | | | | argument. (GH-9208) | ||||
* | bpo-32240: Add the const qualifier to declarations of PyObject* array ↵ | Serhiy Storchaka | 2017-12-15 | 1 | -15/+15 |
| | | | | arguments. (#4746) | ||||
* | bpo-30950: Convert round() to Argument Clinic. (#2740) | Serhiy Storchaka | 2017-11-15 | 1 | -1/+35 |
| | |||||
* | bpo-29464: Rename METH_FASTCALL to METH_FASTCALL|METH_KEYWORDS and make (#1955) | Serhiy Storchaka | 2017-07-03 | 1 | -62/+14 |
| | | | | | 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 | -48/+48 |
| | | | | | | | | 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". | ||||
* | Add reference to help('FORMATTING') in format() builtin (GH-166) | Amit Kumar | 2017-05-29 | 1 | -2/+4 |
| | |||||
* | Run Argument Clinic: METH_VARARGS=>METH_FASTCALL | Victor Stinner | 2017-01-17 | 1 | -34/+78 |
| | | | | | | | | 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 | -4/+8 |
| | | | | | 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 | -1/+1 |
| | | | | Issue #29286. | ||||
* | Issue #27810: Rerun Argument Clinic on all modules | Victor Stinner | 2016-09-09 | 1 | -4/+4 |
| | |||||
* | Issue #27574: Decreased an overhead of parsing keyword arguments in functions | Serhiy Storchaka | 2016-08-14 | 1 | -3/+4 |
| | | | | implemented with using Argument Clinic. | ||||
* | - Issue #27332: Fixed the type of the first argument of module-level functions | Serhiy Storchaka | 2016-07-07 | 1 | -36/+35 |
|\ | | | | | | | 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 | -36/+35 |
| | | | | | | | | 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 | -15/+29 |
|/ | |||||
* | Regenerate Argument Clinic code for issue #26874. | Serhiy Storchaka | 2016-05-01 | 1 | -2/+2 |
| | |||||
* | Specify default values of semantic booleans in Argument Clinic generated ↵ | Serhiy Storchaka | 2015-05-30 | 1 | -5/+5 |
| | | | | signatures as booleans. | ||||
* | Issue #24007: Argument Clinic now writes the format of PyArg_Parse*() at the | Serhiy Storchaka | 2015-04-24 | 1 | -8/+4 |
| | | | | same line as function name. | ||||
* | Issue #23944: Argument Clinic now wraps long impl prototypes at column 78. | Larry Hastings | 2015-04-14 | 1 | -8/+16 |
| | |||||
* | 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/+659 |