[issue34998] Logging formatter validation breaks backward ducktyping

2018-10-17 Thread P.C. Kroon
P.C. Kroon added the comment: Hi Vinay, thanks for the feedback. I agree with your arguments and find an alternative solution. Peter -- ___ Python tracker ___

[issue34998] Logging formatter validation breaks backward ducktyping

2018-10-16 Thread Vinay Sajip
Vinay Sajip 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

[issue34998] Logging formatter validation breaks backward ducktyping

2018-10-16 Thread P.C. Kroon
New submission from P.C. Kroon : Hi all! This concerns commit 18fb1fb943b7dbd7f8a76017ee2a67ef13effb85 (also known as bpo-34844 or GH-9703). For testing purposes I made something that transparently ducktypes being a string, except that it counts how often its `format` and `__mod__` methods