[Python-Dev] Allow assignments in 'global' statements?

Guido van Rossum guido at python.org
Thu Jun 22 17:15:59 CEST 2006


On 6/21/06, Talin <talin at acm.org> wrote:
> I'm sure I am not the first person to say this, but how about:
>
>     global x = 12
>
> (In other words, declare a global and assign a value to it - or another
> way of saying it is that the 'global' keyword acts as an assignment
> modifier.)

-1. If you get this feeling, surely you're overusing global.

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


More information about the Python-Dev mailing list