diff options
author | Rémi Lapeyre <remi.lapeyre@henki.fr> | 2019-05-21 00:17:30 +0200 |
---|---|---|
committer | Pablo Galindo <Pablogsal@gmail.com> | 2019-05-20 23:17:30 +0100 |
commit | bf457c7d8224179a023957876e757f2a7ffc3d9d (patch) | |
tree | 3e880dd0ab6159e2fae2588ae6f2c6071c1bd7a2 /Lib/pdb.py | |
parent | bpo-36952: Remove the bufsize parameter in fileinput.input(). (GH-13400) (diff) | |
download | cpython-bf457c7d8224179a023957876e757f2a7ffc3d9d.tar.gz cpython-bf457c7d8224179a023957876e757f2a7ffc3d9d.tar.bz2 cpython-bf457c7d8224179a023957876e757f2a7ffc3d9d.zip |
bpo-36969: Make PDB args command display keyword only arguments (GH-13452)
Diffstat (limited to 'Lib/pdb.py')
-rwxr-xr-x | Lib/pdb.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/pdb.py b/Lib/pdb.py index f5d33c27fc1..0e7609e43d4 100755 --- a/Lib/pdb.py +++ b/Lib/pdb.py @@ -1132,9 +1132,9 @@ class Pdb(bdb.Bdb, cmd.Cmd): """ co = self.curframe.f_code dict = self.curframe_locals - n = co.co_argcount - if co.co_flags & 4: n = n+1 - if co.co_flags & 8: n = n+1 + n = co.co_argcount + 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): name = co.co_varnames[i] if name in dict: |