[Python-Dev] replacing 'global'

Guido van Rossum guido at python.org
Wed Oct 22 12:02:43 EDT 2003

> How about
>     __.x = 42

Too much line-noise, so too Perlish. :-)

I don't like to use a mysterious symbol like __ for a common thing
like a global variable.  I also don't think I want global variable
assignments to look like attribute assignments.

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

More information about the Python-Dev mailing list