[BangPypers] how to delete base class attribute

Mahadevan R mdevan.foobar at gmail.com
Thu Jul 29 14:03:23 CEST 2010


On Thu, Jul 29, 2010 at 4:24 PM, Nitin Kumar <nitin.nitp at gmail.com> wrote:
> fine, but isn't there any way to hide few function of base class into
> derived one???

You can try obscuring it:

class y(x):
   def __init__(self):
       x.__init__(self)
       self.A = None

Cheers,
-MD.


More information about the BangPypers mailing list