summaryrefslogtreecommitdiff
path: root/Lib/pdb.py
diff options
context:
space:
mode:
authorRĂ©mi Lapeyre <remi.lapeyre@henki.fr>2019-05-24 22:44:31 +0200
committerPablo Galindo <Pablogsal@gmail.com>2019-05-24 21:44:31 +0100
commit458560347f5c28e162bb288adfa0cfe5aad79557 (patch)
tree6bee8dd501337e5c6e3c21698b42cde3e066d540 /Lib/pdb.py
parentdeffee57749cf29ba17f50f11fb2a8cbc3e3752d (diff)
downloadcpython-git-458560347f5c28e162bb288adfa0cfe5aad79557.tar.gz
bpo-36969: Make PDB args command display positional only arguments (GH-13459)
Diffstat (limited to 'Lib/pdb.py')
-rwxr-xr-xLib/pdb.py2
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):