Permalink
Please
sign in to comment.
Browse files
bpo-36540: PEP 570 -- Implementation (GH-12701)
This commit contains the implementation of PEP570: Python positional-only parameters. * Update Grammar/Grammar with new typedarglist and varargslist * Regenerate grammar files * Update and regenerate AST related files * Update code object * Update marshal.c * Update compiler and symtable * Regenerate importlib files * Update callable objects * Implement positional-only args logic in ceval.c * Regenerate frozen data * Update standard library to account for positional-only args * Add test file for positional-only args * Update other test files to account for positional-only args * Add News entry * Update inspect module and related tests
- Loading branch information...
Showing
with
5,767 additions
and 4,706 deletions.
- +44 −2 Grammar/Grammar
- +6 −4 Include/Python-ast.h
- +2 −1 Include/code.h
- +3 −3 Lib/ctypes/test/test_values.py
- +1 −0 Lib/dis.py
- +2 −1 Lib/importlib/_bootstrap_external.py
- +59 −37 Lib/inspect.py
- +3 −2 Lib/modulefinder.py
- +1 −1 Lib/test/inspect_fodder.py
- +16 −0 Lib/test/inspect_fodder2.py
- +27 −24 Lib/test/test_ast.py
- +26 −2 Lib/test/test_code.py
- +35 −27 Lib/test/test_dis.py
- +7 −0 Lib/test/test_functools.py
- +2 −1 Lib/test/test_import/__init__.py
- +1 −1 Lib/test/test_importlib/test_util.py
- +33 −12 Lib/test/test_inspect.py
- +12 −0 Lib/test/test_parser.py
- +403 −0 Lib/test/test_positional_only_arg.py
- +1 −1 Lib/test/test_type_comments.py
- +1 −1 Lib/types.py
- +2 −0 Misc/NEWS.d/next/Core and Builtins/2019-04-06-20-59-19.bpo-36540.SzVUfC.rst
- +4 −4 Objects/call.c
- +44 −29 Objects/codeobject.c
- +1 −1 PC/launcher.c
- +2 −2 Parser/Python.asdl
- +45 −5 Python/Python-ast.c
- +82 −18 Python/ast.c
- +100 −18 Python/ceval.c
- +7 −2 Python/compile.c
- +9 −9 Python/frozen.c
- +418 −204 Python/graminit.c
- +1,401 −1,380 Python/importlib.h
- +2,124 −2,092 Python/importlib_external.h
- +828 −819 Python/importlib_zipimport.h
- +7 −1 Python/marshal.c
- +2 −0 Python/symtable.c
- +6 −2 Tools/parser/unparse.py
Oops, something went wrong.
0 comments on commit
8c77b8c