]> granicus.if.org Git - python/commit
bpo-36540: PEP 570 -- Implementation (GH-12701)
authorPablo Galindo <Pablogsal@gmail.com>
Mon, 29 Apr 2019 12:36:57 +0000 (13:36 +0100)
committerGitHub <noreply@github.com>
Mon, 29 Apr 2019 12:36:57 +0000 (13:36 +0100)
commit8c77b8cb9188165a123f2512026e3629bf03dc9b
tree863ea19f5f2c8ec179c32b3d06dc8366859ae26e
parent99fcc616d400cd31af0733c3f8cc93bcc1d32a44
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
38 files changed:
Grammar/Grammar
Include/Python-ast.h
Include/code.h
Lib/ctypes/test/test_values.py
Lib/dis.py
Lib/importlib/_bootstrap_external.py
Lib/inspect.py
Lib/modulefinder.py
Lib/test/inspect_fodder.py
Lib/test/inspect_fodder2.py
Lib/test/test_ast.py
Lib/test/test_code.py
Lib/test/test_dis.py
Lib/test/test_functools.py
Lib/test/test_import/__init__.py
Lib/test/test_importlib/test_util.py
Lib/test/test_inspect.py
Lib/test/test_parser.py
Lib/test/test_positional_only_arg.py [new file with mode: 0644]
Lib/test/test_type_comments.py
Lib/types.py
Misc/NEWS.d/next/Core and Builtins/2019-04-06-20-59-19.bpo-36540.SzVUfC.rst [new file with mode: 0644]
Objects/call.c
Objects/codeobject.c
PC/launcher.c
Parser/Python.asdl
Python/Python-ast.c
Python/ast.c
Python/ceval.c
Python/compile.c
Python/frozen.c
Python/graminit.c
Python/importlib.h
Python/importlib_external.h
Python/importlib_zipimport.h
Python/marshal.c
Python/symtable.c
Tools/parser/unparse.py