[Python-checkins] r87780 - in python/branches/py3k: Lib/bdb.py Misc/NEWS
victor.stinner
python-checkins at python.org
Thu Jan 6 01:49:39 CET 2011
Author: victor.stinner
Date: Thu Jan 6 01:49:38 2011
New Revision: 87780
Log:
Issue #10492: bdb.Bdb.run() only traces the execution of the code
And not the compilation (if the input is a string).
Modified:
python/branches/py3k/Lib/bdb.py
python/branches/py3k/Misc/NEWS
Modified: python/branches/py3k/Lib/bdb.py
==============================================================================
--- python/branches/py3k/Lib/bdb.py (original)
+++ python/branches/py3k/Lib/bdb.py Thu Jan 6 01:49:38 2011
@@ -385,6 +385,8 @@
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)
Modified: python/branches/py3k/Misc/NEWS
==============================================================================
--- python/branches/py3k/Misc/NEWS (original)
+++ python/branches/py3k/Misc/NEWS Thu Jan 6 01:49:38 2011
@@ -30,6 +30,9 @@
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.
More information about the Python-checkins
mailing list