[issue40815] Multiprocessing docs don't describe thread-safety

2020-05-29 Thread Alan Briolat
Change by Alan Briolat : -- nosy: +alan.briolat ___ Python tracker <https://bugs.python.org/issue40815> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21172] Unexpected behaviour with logging.LogRecord "first arg is dict" case

2014-04-08 Thread Alan Briolat
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&

[issue21172] Unexpected behaviour with logging.LogRecord "first arg is dict" case

2014-04-07 Thread Alan Briolat
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")