How to “hide” superclass methods in a subclass

I basically want to create a subclass that "hides" methods on the superclass so that they don't show up in a dir() or hasattr() call and the users can't call them (at least not through any of the normal channels). I would also like to do this with the least amount of "magic" possible. Thanks.

6
задан 29 April 2011 в 02:39
поделиться