Change by Alan Briolat :
--
nosy: +alan.briolat
___
Python tracker
<https://bugs.python.org/issue40815>
___
___
Python-bugs-list mailing list
Unsubscribe:
Alan Briolat added the comment:
Because the object in question is not actually a dict, LogRecord is attempting,
in this example, "%(bar)s" % (f,) instead of "%(bar)s" % f.
In unicodeobject.c this causes the PyMapping_Check in PyUnicode_Format to fail
because it&
New submission from Alan Briolat:
The logging.LogRecord class is more restrictive with its "first arg is dict"
case than the formatting operator it uses requires. As far as I can tell, for
"%(foo)s" % bar, the minimum contract is that bar.__getitem__("foo")