[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: upvalues actually are values?
- From: Elias Barrionovo <elias.tandel@...>
- Date: Tue, 23 Oct 2012 20:16:20 -0200
On Tue, Oct 23, 2012 at 7:55 PM, Coda Highland <chighland@gmail.com> wrote:
> The issue you encountered there with "i += n" is that it expands to "i
> = i + n", which declares i as a local variable first and THEN tries to
> look up its value, but it's uninitialized. In Python, ALL assignment
> operations act on locals unless explicitly made global.
I actually encountered this problem recently. I stand corrected! Thanks! =)
--
NI!