[Python-Dev] Explicit Lexical Scoping (pre-PEP?)
Barry Warsaw
barry at python.org
Wed Jul 5 12:48:25 CEST 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
PCTotD (pre-coffee thought of the day):
On Jul 5, 2006, at 6:17 AM, Marek "Baczek" Baczyński wrote:
> 2006/7/5, Just van Rossum <just at letterror.com>:
>> Guido van Rossum wrote:
>>
>>> On 7/5/06, Phillip J. Eby <pje at telecommunity.com> wrote:
>>>> Did you also consider and reject:
>>>>
>>>> * Alternate binding operators (e.g. ":=", ".=", etc.)
>>>
>>> Brr.
Clearly we need the "as if in" operator:
x = 0
def foo():
x = 1
def bar():
x = 2
def baz():
x as if in foo = 3
x as if in global += 1
(Personally, I've never really needed this much, but if you have to
have it, be explicit! :)
- -Barry
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)
iQCVAwUBRKuY+XEjvBPtnXfVAQI7WAQAp9fp8SZU8lJdyllrrbFhR9lWxF+pbZ9d
+OBv0VEFiFD3aLuKc7y7rAyCWfRVMsoO3FsapeC0/CFJDpRoDDRB7qLzX7He9Fyf
JXh3g489RdokxwZClIl38RVgM7WNVK8lzFr8Kf8eTjEUItJoJjk5m2vhymQpfWYG
/OeU5xCABxw=
=OBRd
-----END PGP SIGNATURE-----
More information about the Python-Dev
mailing list