From 458560347f5c28e162bb288adfa0cfe5aad79557 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Lapeyre?= Date: Fri, 24 May 2019 22:44:31 +0200 Subject: bpo-36969: Make PDB args command display positional only arguments (GH-13459) --- Lib/pdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/pdb.py') 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): -- cgit v1.2.1