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/2001-March/013351.html below:

[Python-Dev] just trying to catch up with the semantic

[Python-Dev] just trying to catch up with the semantic [Python-Dev] just trying to catch up with the semanticGreg Ewing greg@cosc.canterbury.ac.nz
Fri, 02 Mar 2001 10:54:45 +1300 (NZDT)
Jeremy:

> My preference is that global kills the local-decl only in one scope.

I agree, because otherwise there would be no way of
*undoing* the effect of a global in an outer scope.

The way things are, I can write a function

  def f():
    x = 3
    return x

and be assured that x will always be local, no matter what
environment I move the function into. I like this property.

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg@cosc.canterbury.ac.nz	   +--------------------------------------+



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