A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2008-November/083652.html below:

[Python-Dev] Redirecting warnings.showwarning to logging

[Python-Dev] Redirecting warnings.showwarning to logging [Python-Dev] Redirecting warnings.showwarning to loggingTres Seaver tseaver at palladion.com
Sun Nov 23 14:15:57 CET 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Nick Coghlan wrote:
> Antoine Pitrou wrote:
>> Brett Cannon <brett <at> 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 :)

Monkey-patching is never inheritance-based:  it means replacing a method
/ attribute of a module or class from a different module, after import time.


Tres.
- --
===================================================================
Tres Seaver          +1 540-429-0999          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJKVeN+gerLs4ltQ4RAvWKAJ47URWBPaqgRoA6LUZ7d1pOuAk9nQCgqBk7
1gxVqwbnbfSzFDUE0wwfyjg=
=Yv7d
-----END PGP SIGNATURE-----

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4