diff options
| author | Pablo Galindo <Pablogsal@gmail.com> | 2019-04-29 13:36:57 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-29 13:36:57 +0100 |
| commit | 8c77b8cb9188165a123f2512026e3629bf03dc9b (patch) | |
| tree | 863ea19f5f2c8ec179c32b3d06dc8366859ae26e /Lib/dis.py | |
| parent | 99fcc616d400cd31af0733c3f8cc93bcc1d32a44 (diff) | |
| download | cpython-git-8c77b8cb9188165a123f2512026e3629bf03dc9b.tar.gz | |
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
Diffstat (limited to 'Lib/dis.py')
| -rw-r--r-- | Lib/dis.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/dis.py b/Lib/dis.py index b2b0003203..a25fb2b417 100644 --- a/Lib/dis.py +++ b/Lib/dis.py @@ -157,6 +157,7 @@ def _format_code_info(co): lines.append("Name: %s" % co.co_name) lines.append("Filename: %s" % co.co_filename) lines.append("Argument count: %s" % co.co_argcount) + lines.append("Positional-only arguments: %s" % co.co_posonlyargcount) lines.append("Kw-only arguments: %s" % co.co_kwonlyargcount) lines.append("Number of locals: %s" % co.co_nlocals) lines.append("Stack size: %s" % co.co_stacksize) |
