A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2003-February/032877.html below:

native code compiler? (or, OCaml vs. Python)

[Python-Dev] Re: native code compiler? (or, OCaml vs. Python)Barry A. Warsaw barry@python.org
Mon, 3 Feb 2003 17:31:14 -0500
>>>>> "JH" == Jeremy Hylton <jeremy@zope.com> writes:

    JH> On many occasions I have externally patched a module's
    JH> namespace for debugging.  It's been really convenient to
    JH> replace some function with a wrapper that does some logging or
    JH> updates a table tracking currently used resources.  I've done
    JH> the same with builtin open/file.  As you noted, it seems less
    JH> useful to override other builtins for this purpose.

I've done the same, and when I've needed, it's been incredibly handy.
Rare, but useful.  Then again, I've also only done this with open(),
so maybe something like an open() hook would suffice.  I can imagine
some of the other built-ins /might/ be useful to debuggingly replace,
but that's just speculation on my part, and may be yagni.

-Barry



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