diff options
author | RĂ©mi Lapeyre <remi.lapeyre@henki.fr> | 2019-05-24 22:44:31 +0200 |
---|---|---|
committer | Pablo Galindo <Pablogsal@gmail.com> | 2019-05-24 21:44:31 +0100 |
commit | 458560347f5c28e162bb288adfa0cfe5aad79557 (patch) | |
tree | 6bee8dd501337e5c6e3c21698b42cde3e066d540 /Lib/pdb.py | |
parent | deffee57749cf29ba17f50f11fb2a8cbc3e3752d (diff) | |
download | cpython-git-458560347f5c28e162bb288adfa0cfe5aad79557.tar.gz |
bpo-36969: Make PDB args command display positional only arguments (GH-13459)
Diffstat (limited to 'Lib/pdb.py')
-rwxr-xr-x | Lib/pdb.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pdb.py b/Lib/pdb.py index 0e7609e43d..13068ce27b 100755 --- a/Lib/pdb.py +++ b/Lib/pdb.py @@ -1132,7 +1132,7 @@ class Pdb(bdb.Bdb, cmd.Cmd): """ co = self.curframe.f_code dict = self.curframe_locals - n = co.co_argcount + co.co_kwonlyargcount + n = co.co_argcount + co.co_posonlyargcount + co.co_kwonlyargcount if co.co_flags & inspect.CO_VARARGS: n = n+1 if co.co_flags & inspect.CO_VARKEYWORDS: n = n+1 for i in range(n): |