Re: Variable scope inside and outside functions - global statement being overridden by assignation unless preceded by reference

Liste des GroupesRevenir à cl python 
Sujet : Re: Variable scope inside and outside functions - global statement being overridden by assignation unless preceded by reference
De : rosuav (at) *nospam* gmail.com (Chris Angelico)
Groupes : comp.lang.python
Date : 08. Mar 2024, 15:57:40
Autres entêtes
Message-ID : <mailman.64.1709906275.3452.python-list@python.org>
References : 1 2 3 4
On Sat, 9 Mar 2024 at 00:51, Grant Edwards via Python-list
<python-list@python.org> wrote:
One might argue that "global" isn't a good choice for what to call the
scope in question, since it's not global. It's limited to that source
file. It doesn't make sense to me to call a binding "global", when
there can be multile different "global" bindings of the same name.
>
Most "globals" aren't global either, since you can have different
globals in different running applications.
ChrisA

Date Sujet#  Auteur
8 Mar 24 o Re: Variable scope inside and outside functions - global statement being overridden by assignation unless preceded by reference1Chris Angelico

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal