Re: Close access to the base class public methods

2008-11-11 Thread Chris Rebert
On Tue, Nov 11, 2008 at 11:16 AM, RinKaMeAri <[EMAIL PROTECTED]> wrote: > On Nov 11, 9:12 pm, Steve Holden <[EMAIL PROTECTED]> wrote: >> RinKaMeAri wrote: >> > Hi! >> > Could you imagine any way to block access to the base class public >> > methods? >> > Here is an example: >> > class B: >> > d

Re: Close access to the base class public methods

2008-11-11 Thread Steve Holden
RinKaMeAri wrote: > On Nov 11, 9:12 pm, Steve Holden <[EMAIL PROTECTED]> wrote: >> RinKaMeAri wrote: >>> Hi! >>> Could you imagine any way to block access to the base class public >>> methods? >>> Here is an example: >>> class B: >>> def public_method(): >>> pass >>> class A(B): >>>

Re: Close access to the base class public methods

2008-11-11 Thread RinKaMeAri
On Nov 11, 9:12 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > RinKaMeAri wrote: > > Hi! > > Could you imagine any way to block access to the base class public > > methods? > > Here is an example: > > class B: > >     def public_method(): > >         pass > > > class A(B): > >     def public_a_metho

Re: Close access to the base class public methods

2008-11-11 Thread Steve Holden
RinKaMeAri wrote: > Hi! > Could you imagine any way to block access to the base class public > methods? > Here is an example: > class B: > def public_method(): > pass > > class A(B): > def public_a_method(): > pass > > def a = A() > > Is there any way to block the call a

Close access to the base class public methods

2008-11-11 Thread RinKaMeAri
Hi! Could you imagine any way to block access to the base class public methods? Here is an example: class B: def public_method(): pass class A(B): def public_a_method(): pass def a = A() Is there any way to block the call a.public_method() without any changes to B class?