lists of variables

Gregory Ewing greg.ewing at canterbury.ac.nz
Mon Feb 22 00:32:47 CET 2010


Steven D'Aprano wrote:
> On Sat, 20 Feb 2010 22:31:44 -0800, Carl Banks wrote:
> 
>>The one place where Python does have references is when accessing
>>variables in an enclosing scope (not counting module-level).  
> 
> What makes you say that?

I think Carl is talking about cells, which *are* actually objects
(in CPython at least), but they're internal details of the
interpreter, and you can't do anything useful with them from
Python code.

-- 
Greg



More information about the Python-list mailing list