And not the compilation (if the input is a string).
if locals is None:
locals = globals
self.reset()
+ if isinstance(cmd, str):
+ cmd = compile(cmd, "<string>", "exec")
sys.settrace(self.trace_dispatch)
try:
exec(cmd, globals, locals)
Library
-------
+- Issue #10492: bdb.Bdb.run() only traces the execution of the code, not the
+ compilation (if the input is a string).
+
- Issue #7995: When calling accept() on a socket with a timeout, the returned
socket is now always blocking, regardless of the operating system.