[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [Proposal] _LOCAL was: Re: how to call a local function by its name?
- From: Jonathan Goble <jcgoble3@...>
- Date: Tue, 9 Jun 2015 00:13:13 -0400
On Tue, Jun 9, 2015 at 12:02 AM, Parke <parke.nexus@gmail.com> wrote:
> On Mon, Jun 8, 2015 at 7:37 PM, Coda Highland <chighland@gmail.com> wrote:
>> Worse, [Python's local-by-default] makes upvalues very challenging, as they are neither local
>> nor global yet no way exists to explicitly target them in Python 2.x.
>> (If you try to assign to an upvalue, you instead create a new local
>> that shadows it!)
>
> Is this fixed in Python 3.x?
Yes. Python 3.x introduces the `nonlocal` keyword for that purpose.
- References:
- how to call a local function by its name?, Dmitry V. Zaitsev
- Re: how to call a local function by its name?, Paul K
- Re: how to call a local function by its name?, Brigham Toskin
- Re: how to call a local function by its name?, Dmitry Zaitsev
- Re: how to call a local function by its name?, Brigham Toskin
- Re: how to call a local function by its name?, Milind Gupta
- Re: how to call a local function by its name?, Oliver Kroth
- [Proposal] _LOCAL was: Re: how to call a local function by its name?, Soni L.
- Re: [Proposal] _LOCAL was: Re: how to call a local function by its name?, Soni L.
- Re: [Proposal] _LOCAL was: Re: how to call a local function by its name?, Coda Highland
- Re: [Proposal] _LOCAL was: Re: how to call a local function by its name?, Soni L.
- Re: [Proposal] _LOCAL was: Re: how to call a local function by its name?, Coda Highland
- Re: [Proposal] _LOCAL was: Re: how to call a local function by its name?, Soni L.
- Re: [Proposal] _LOCAL was: Re: how to call a local function by its name?, Coda Highland
- Re: [Proposal] _LOCAL was: Re: how to call a local function by its name?, Coda Highland
- Re: [Proposal] _LOCAL was: Re: how to call a local function by its name?, Rena
- Re: [Proposal] _LOCAL was: Re: how to call a local function by its name?, Coda Highland
- Re: [Proposal] _LOCAL was: Re: how to call a local function by its name?, Rena
- Re: [Proposal] _LOCAL was: Re: how to call a local function by its name?, Coda Highland
- Re: [Proposal] _LOCAL was: Re: how to call a local function by its name?, Parke