Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #41645
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Subject | Re: free and nonlocal variables |
| Date | 2013-03-21 07:55 -0400 |
| References | <263e910f-4cc5-4b50-bf8d-c207622170b5@googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3584.1363866922.2939.python-list@python.org> (permalink) |
On 3/21/2013 4:52 AM, bartolome.sintes@gmail.com wrote: > In Python 3, "free variable" and "nonlocal variable" are synonym terms? Yes, but that is idiosyncratic to Python. > Or is there a difference, like "a free variable is a variable that is > not a local variable, then nonlocal variables and global variables are > both free variables"? I believe that is the usual definition, such as you would find on Wikipedia. -- Terry Jan Reedy
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
free and nonlocal variables bartolome.sintes@gmail.com - 2013-03-21 01:52 -0700
Re: free and nonlocal variables 88888 Dihedral <dihedral88888@googlemail.com> - 2013-03-21 02:34 -0700
Re: free and nonlocal variables Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-03-21 11:00 +0000
Re: free and nonlocal variables Terry Reedy <tjreedy@udel.edu> - 2013-03-21 07:55 -0400
Re: free and nonlocal variables Nobody <nobody@nowhere.com> - 2013-03-21 19:05 +0000
Re: free and nonlocal variables Jussi Piitulainen <jpiitula@ling.helsinki.fi> - 2013-03-21 22:36 +0200
csiph-web