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-January/076205.html below:

[Python-Dev] Monkeypatching idioms -- elegant or ugly?

[Python-Dev] Monkeypatching idioms -- elegant or ugly? [Python-Dev] Monkeypatching idioms -- elegant or ugly?Stephen J. Turnbull stephen at xemacs.org
Tue Jan 15 21:43:33 CET 2008
Guido van Rossum writes:

 > I think it's useful to share these recipes,

But only to people who have demonstrated that they already know when,
why and how to monkeypatch on their own.  Lisp's `defadvice' plays a
starring role in a number of my nightmares.  Most recently, 15 minutes
ago.<wink>

Come to think of it, `defadvice' does have the advantage that it also
automatically monkeypatches the docstring to say "This function has
<class> advice", and with a little cooperation from the advisor can
also provide documentation of the changed semantics.


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