Setting an attribute without calling __setattr__()

Joshua Kugler jkugler at bigfoot.com
Fri Apr 25 21:26:48 EDT 2008


John Machin wrote:
>> Is there a way to define self.me without it firing __setattr__?
> Consider reading the *second* paragraph about __setattr__ in section
> 3.4.2 of the Python Reference Manual.

Like I said in my original post, it was probably staring me right in the
face.  I had read through a bit of the documentation on special methods,
but for some reason I missed that part.

Thanks to all for your responses!

j






More information about the Python-list mailing list