[Python-Dev] Python 2.1 release schedule

Guido van Rossum guido@digicool.com
Mon, 12 Feb 2001 09:53:30 -0500


> Other issues:
> 
> + Make "global x" textually following any reference to x (in the
>   same scope) a compile-time error.  Unclear whether
> 
>   def f():
>      global x
>      global x
> 
>   is an error under that rule (i.e., does appearance in a global
>   stmt constitute "a reference"?).  Ditto for
> 
>   def f():
>       global x, x
> 
>   My opinion:  declarations aren't references, and redundant
>   declarations don't hurt (so "no, not an error" to both).
> 
>   Change Ref Man accordingly (i.e., this plugs a hole in the
>   *language* defn, it's not just a question of implementation
>   accident du jour anymore).

Agreed.

> + Spew warning for "import *" and "exec" at function scope, or
>   change Ref Man to spell out when this is and isn't guaranteed
>   to work.

Ah, yes!  A warning!  That would be great!

> Guido appeared to agree with both of those.

Can't recall when  we discussed these, but yes, after some
introspection I still appear to agree.

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