__init__ & attributes clarification

Afanasiy abelikov72 at hotmail.com
Sun Feb 2 18:00:20 EST 2003


On Sun, 02 Feb 2003 22:36:26 GMT, Alex Martelli <aleax at aleax.it> wrote:

>Afanasiy wrote:
>    ...
>> This is unusual in my experience... So, if an object writes to a member
>> with the same name as a class member, does it change that class member for
>> the class, all instances of the class, all future instances, or just self?
>
>"writes to" is ambiguous -- can mean "rebind" or "modify" (e.g.,
>call the .append method on a list object) -- two totally different
>cases, of course.

I mean setting, as in "setattr"




More information about the Python-list mailing list