[Python-Dev] Re: closure semantics

David Eppstein eppstein at ics.uci.edu
Fri Oct 24 20:31:12 EDT 2003


In article <bncf99366ドル$1 at sea.gmane.org>,
 "Terry Reedy" <tjreedy at udel.edu> wrote:
> > A, B, and C *are* instance variables. Why do you think they aren't?
>> What? They are class attributes that live in the class dictionary,
> not the instance dictionary.

They are instance variables on the class object, which is an instance of 
type 'class'.
-- 
David Eppstein http://www.ics.uci.edu/~eppstein/
Univ. of California, Irvine, School of Information & Computer Science


More information about the Python-Dev mailing list

AltStyle によって変換されたページ (->オリジナル) /