def __call__(self, *args, **kwargs):
            """Call abstract method

            Raises a TypeError, because abstract methods can not be
            called.
            """
            raise TypeError('Abstract method `' + self._class.__name__ \
                            + '.' + self._function + '\' called')
Call abstract method

            Raises a TypeError, because abstract methods can not be
            called.
            
recipes/Python/266468_Abstract_methodsclasses/recipe-266468.py