[issue21912] Deferred logging may use outdated references
Jonas Diemer
report at bugs.python.org
Thu Jul 3 14:55:28 CEST 2014
Jonas Diemer added the comment:
Find attached a demo script that causes the erratic behavior in regular Python (2.7.5 on Windows).
The log file contains two lines, both show the new name of the object, although the first debug() was called befor the name change.
I think this problem could be avoided if the message was formatted earlier (i.e. synchronous to the debug() call).
----------
Added file: http://bugs.python.org/file35839/testlogging.py
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21912>
_______________________________________
More information about the Python-bugs-list
mailing list