A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-October/039677.html below:

[Python-Dev] replacing 'global'

[Python-Dev] replacing 'global' [Python-Dev] replacing 'global'Guido van Rossum guido at python.org
Mon Oct 27 21:55:57 EST 2003
> If we adopt a method of nonlocal assignment that allows the
> deprecation of "global", then we have a chance to change this,
> if we think that such "at-a-distance" rules are undesirable
> in general.
> 
> Do we think that?

Alex certainly seems to be arguing this, but I think it's a lost cause.

Even Alex will have to accept the long-distance effect of

  def f():
      x = 42
      .
      . (hundreds of lines of unrelated code)
      .
      print x

And at some point in the future Python *will* grow (optional) type
declarations for all sorts of things (arguments, local variables,
instance variables) and those will certainly have effect at a
distance.

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

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4