<p>In C++ you can disable a function in parent's class by declaring it as private in the child class. How can this be done in Python? I.E. How can I hide parent's function from child's public interface?</p>

```
```
class X(object):
    def some_function(self):
        do_some_stuff()

class Y(object):
    some_function = None
```
```
This may lead to some nasty and hard to find exceptions being thrown though, so you might try this:
```
```
class X(object):
    def some_function(self):
        do_some_stuff()

class Y(object):
    def some_function(self):
        raise NotImplementedError("function some_function not implemented")
```
```