
Feb. 3, 2003
10:51 p.m.
"GvR" == Guido van Rossum <guido@python.org> writes:
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.
GvR> My proposal is to allow rebinding existing globals, just not to GvR> allow binding *new* globals *if* they shadow certain builtins. Oh! +1 on that. just-add-a-future-statement-ly y'rs, Jeremy