[Python-Dev] Re: let's not stretch a keyword's use unreasonably, _please_...

Aahz aahz at pythoncraft.com
Sat Oct 25 19:23:26 EDT 2003

On Thu, Oct 23, 2003, Skip Montanaro wrote:
>     >>> import __main__ as m # I know, not general, just for trial
>     >>> m.c=3
> Isn't (in 3.0) the notion of being able to modify another module's globals
> supposed to get restricted to help out (among other things) the compiler?
> If so, this use, even though it's not really modifying a global in another
> module, might not work forever.

That use had better continue working.  What won't work is

    m.len = my_len()

and even there, there's still some debate about ways to structure
permitting it for the use of debuggers.
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"It is easier to optimize correct code than to correct optimized code."
--Bill Harlan

More information about the Python-Dev mailing list