[Python-Dev] Redirecting warnings.showwarning to logging (original) (raw)

Nick Coghlan ncoghlan at gmail.com
Sun Nov 23 12:38:32 CET 2008


Antoine Pitrou wrote:

Brett Cannon <brett python.org> writes:

It is specifically there to be overridden (and as an aside, it was a pain to support in the C port of warnings), so it really isn't monkey-patching. =) Should we coin a new word for this? Pretty-patching?

When the module docs tell you it's OK, it's just overriding the function. If the docs don't tell you to do it, it's monkey patching :)

Cheers, Nick.

-- Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia



More information about the Python-Dev mailing list