[Python-Dev] Re: native code compiler? (or, OCaml vs. Python)

Guido van Rossum guido@python.org
Mon, 03 Feb 2003 17:48:56 -0500


> But it is useful for to replace modules.  For example, if you want to
> debug a module that uses the thread module, you can replace it's
> "thread" global with something that hooks "start_new_thread."  I think
> that pattern is not uncommon.

My proposal is to allow rebinding existing globals, just not to allow
binding *new* globals *if* they shadow certain builtins.

--Guido van Rossum (home page: http://www.python.org/~guido/)