On Fri, Aug 24, 2012 at 7:14 PM, Evan Driscoll <drisc...@cs.wisc.edu> wrote:
> On 8/23/2012 22:17, alex23 wrote: > > But Roy's point was that referring to 'a' as a 'variable' makes no > > sense, as it's not an allocated piece of memory. > > Does the computer just remember what 'a' refers to by keeping notes > about it in Narnia? > You're correct. It will be, on some level, a piece of memory. But I don't recall seeing any guarantee that the memory used to hold the dictionary key of 'a' in one scope would be re-used if 'a' was first deleted and then re-created. It's an implementation detail about the language that we don't care about.
-- http://mail.python.org/mailman/listinfo/python-list