Re: Setting an attribute without calling __setattr__()

2008-04-26 Thread animalMutha
> Consider reading the *second* paragraph about __setattr__ in section > 3.4.2 of the Python Reference Manual. if you are simply going to answer rtfm - might as well kept it to yourself. -- http://mail.python.org/mailman/listinfo/python-list

Re: Setting an attribute without calling __setattr__()

2008-04-26 Thread animalMutha
Hrvoje Niksic wrote: > Hrvoje Niksic <[EMAIL PROTECTED]> writes: > > > Joshua Kugler <[EMAIL PROTECTED]> writes: > > > >> self.me = [] > >> self.me = {} > > > > Use "object.__setattr__(self, 'me') = []" and likewise for {}. > > Oops, that should of course be "object.__seta