[Python-Dev] Re: native code compiler? (or, OCaml vs. Python) (original) (raw)
Barry A. Warsaw barry@python.org
Mon, 3 Feb 2003 17:31:14 -0500
- Previous message: [Python-Dev] Re: native code compiler? (or, OCaml vs. Python)
- Next message: [Python-Dev] Re: native code compiler? (or, OCaml vs. Python)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"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
- Previous message: [Python-Dev] Re: native code compiler? (or, OCaml vs. Python)
- Next message: [Python-Dev] Re: native code compiler? (or, OCaml vs. Python)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]