Re: Protecting instance variables

2008-07-28 Thread Bruno Desthuilliers
Nikolaus Rath a écrit : Hi, Sorry for replying so late. Your MUA apparently messes up the References:, so I saw you reply only now and by coincidence. "Diez B. Roggisch" <[EMAIL PROTECTED]> writes: Nikolaus Rath schrieb: Hello, I am really surprised that I am asking this question on the mail

Re: Protecting instance variables

2008-07-28 Thread Michael Mabin
What about __setattr__()? On Mon, Jul 28, 2008 at 5:23 AM, Nikolaus Rath <[EMAIL PROTECTED]> wrote: > Hi, > > Sorry for replying so late. Your MUA apparently messes up the > References:, so I saw you reply only now and by coincidence. > > "Diez B. Roggisch" <[EMAIL PROTECTED]> writes: > > Nikolau

Re: Protecting instance variables

2008-07-28 Thread Nikolaus Rath
Hi, Sorry for replying so late. Your MUA apparently messes up the References:, so I saw you reply only now and by coincidence. "Diez B. Roggisch" <[EMAIL PROTECTED]> writes: > Nikolaus Rath schrieb: >> Hello, >> >> I am really surprised that I am asking this question on the mailing >> list, but I

Re: Protecting instance variables

2008-07-18 Thread Diez B. Roggisch
Nikolaus Rath schrieb: Hello, I am really surprised that I am asking this question on the mailing list, but I really couldn't find it on python.org/doc. Why is there no proper way to protect an instance variable from access in derived classes? I can perfectly understand the philosophy behind n

Protecting instance variables

2008-07-18 Thread Nikolaus Rath
Hello, I am really surprised that I am asking this question on the mailing list, but I really couldn't find it on python.org/doc. Why is there no proper way to protect an instance variable from access in derived classes? I can perfectly understand the philosophy behind not protecting them from a