Guido's new method definition idea

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Sun Dec 7 13:05:42 CET 2008


On Sun, 07 Dec 2008 12:43:13 +0100, News123 wrote:

> Sorry Dennis,
> 
> 
> I don't understand your answer.
> I'm not very knowledgable with all the OO vocabulary, but just use OO.
> 
> self.a , self.b , self.c are stored  in the object and could later be
> used by other object-methods.

In Python terminology, they are called "attributes". This is fairly 
standard for most OO languages too.

If the attribute is stored in the instance, it is an "instance 
attribute". If it is shared by all instances and stored in the class, it 
is a "class attribute".


-- 
Steven



More information about the Python-list mailing list