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/039597.html below:

[Python-Dev] replacing 'global'

[Python-Dev] replacing 'global' [Python-Dev] replacing 'global'Skip Montanaro skip at pobox.com
Sun Oct 26 12:11:51 EST 2003
    > Sounds good to me.  Question: what does this do?
    >
    >     def f():
    >         def g(x):
    >             z := x
       ...
    > That is, in the absence of a pre-existing binding, where does the
    > binding for := go?  I think it should be equivalent to global, going to
    > the module scope.

This is one place I think an extension of the global statement has a
definite advantage:

    def f():
        def g():
            global z in f
            z = x

Skip

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