Ulrich Petri <pyt...@ulo.pe> added the comment:
This change breaks (probably unsupported) uses of the logging module (esp. in combination with structlog) where non-string objects are passed through the .format() and .emit() calls. Previously it was possible to set the terminator attribute to None (and then handling that case in a custom 'stream' implementation), which now breaks with a TypeError due to the concatenation. In case anyone else runs into this (however unlikely that is). A workaround is to set the .terminator to something like this: class ConcatenableNothing: def __radd__(self, other): return other ---------- nosy: +ulope _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue35046> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com