Guido's new method definition idea
Steven D'Aprano
steve at REMOVE-THIS-cybersource.com.au
Sun Dec 7 07:05:42 EST 2008
More information about the Python-list mailing list
Sun Dec 7 07:05:42 EST 2008
- Previous message (by thread): Guido's new method definition idea
- Next message (by thread): Guido's new method definition idea
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message (by thread): Guido's new method definition idea
- Next message (by thread): Guido's new method definition idea
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list