Commit 2ef7e6c8 authored by Raymond Hettinger's avatar Raymond Hettinger

SF bug #1052503: pdb runcall should accept keyword arguments

parent 9047c8f7
...@@ -391,13 +391,13 @@ class Bdb: ...@@ -391,13 +391,13 @@ class Bdb:
# This method is more useful to debug a single function call. # This method is more useful to debug a single function call.
def runcall(self, func, *args): def runcall(self, func, *args, **kwds):
self.reset() self.reset()
sys.settrace(self.trace_dispatch) sys.settrace(self.trace_dispatch)
res = None res = None
try: try:
try: try:
res = func(*args) res = func(*args, **kwds)
except BdbQuit: except BdbQuit:
pass pass
finally: finally:
......
...@@ -993,8 +993,8 @@ def runctx(statement, globals, locals): ...@@ -993,8 +993,8 @@ def runctx(statement, globals, locals):
# B/W compatibility # B/W compatibility
run(statement, globals, locals) run(statement, globals, locals)
def runcall(*args): def runcall(*args, **kwds):
return Pdb().runcall(*args) return Pdb().runcall(*args, **kwds)
def set_trace(): def set_trace():
Pdb().set_trace() Pdb().set_trace()
......
...@@ -45,6 +45,8 @@ Extension Modules ...@@ -45,6 +45,8 @@ Extension Modules
Library Library
------- -------
- Bug #1052503 pdb.runcall() was not passing along keyword arguments.
- Bug #902037: XML.sax.saxutils.prepare_input_source() now combines relative - Bug #902037: XML.sax.saxutils.prepare_input_source() now combines relative
paths with a base path before checking os.path.isfile(). paths with a base path before checking os.path.isfile().
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment