[issue34998] Logging formatter validation breaks backward ducktyping

Vinay Sajip report at bugs.python.org
Tue Oct 16 21:54:58 EDT 2018


Vinay Sajip <vinay_sajip at yahoo.co.uk> added the comment:

Unfortunately, setting the default value of validate to False would completely negate the usefulness of the feature, because it would rely on people coming to know about it and remembering to turn it on. Given that this feature is adding error checking, and that

Errors should never pass silently.
Unless explicitly silenced.

I think that the default should remain as it is. I suggest that you either subclass str for your needs, or work around the backward compatibility issue by checking the version of Python you're running under.

----------
nosy: +BNMetrics, vinay.sajip
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34998>
_______________________________________


More information about the Python-bugs-list mailing list