[issue21912] Deferred logging may use outdated references
Jonas Diemer
report at bugs.python.org
Thu Jul 3 17:21:52 CEST 2014
Jonas Diemer added the comment:
2014-07-03 16:42 GMT+02:00 Vinay Sajip <report at bugs.python.org>:
> > I "forked" logging and am catching exceptions during the string
> formatting
>
> That might work with Jython and invalidated objects, but in the case of
> e.g. CPython (where the objects can't be invalidated/garbage collected as
> there is a reference to them in the LogRecord for the logged event) I don't
> see how that approach is generally applicable.
True, it only helps for Jython.
Still, I suggest adding this behavior to the documentation.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21912>
_______________________________________
More information about the Python-bugs-list
mailing list