From: Raymond Hettinger Date: Sun, 24 Oct 2004 00:32:24 +0000 (+0000) Subject: SF bug #1052503: pdb runcall should accept keyword arguments X-Git-Tag: v2.4b2~62 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2ef7e6c8f24856aacc15bd9dc51a7ee2081547b3;p=thirdparty%2FPython%2Fcpython.git SF bug #1052503: pdb runcall should accept keyword arguments --- diff --git a/Lib/bdb.py b/Lib/bdb.py index f5550781b363..dacbcc0a478b 100644 --- a/Lib/bdb.py +++ b/Lib/bdb.py @@ -391,13 +391,13 @@ class Bdb: # This method is more useful to debug a single function call. - def runcall(self, func, *args): + def runcall(self, func, *args, **kwds): self.reset() sys.settrace(self.trace_dispatch) res = None try: try: - res = func(*args) + res = func(*args, **kwds) except BdbQuit: pass finally: diff --git a/Lib/pdb.py b/Lib/pdb.py index 3c229ab772ad..b608adf2d4d0 100755 --- a/Lib/pdb.py +++ b/Lib/pdb.py @@ -993,8 +993,8 @@ def runctx(statement, globals, locals): # B/W compatibility run(statement, globals, locals) -def runcall(*args): - return Pdb().runcall(*args) +def runcall(*args, **kwds): + return Pdb().runcall(*args, **kwds) def set_trace(): Pdb().set_trace() diff --git a/Misc/NEWS b/Misc/NEWS index d0a5af5bd61b..e5437e177ef5 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -45,6 +45,8 @@ Extension Modules Library ------- +- Bug #1052503 pdb.runcall() was not passing along keyword arguments. + - Bug #902037: XML.sax.saxutils.prepare_input_source() now combines relative paths with a base path before checking os.path.isfile().