[Python-ideas] The prohibition overrides the class method
Victor Stinner
victor.stinner at gmail.com
Tue Nov 17 06:17:42 EST 2015
2015-11-16 16:03 GMT+01:00 Иван Спиненко <spinenkoia at gmail.com>:
> I propose to make an analogue of the final specifier in C ++. In class
> abc.ABCMeta has decorator abstractmethod, you can add decorator finalmethod.
Would it be allowed to override the method in the class where the
method is defined using unittest.mock? Mocking looks popular and
importang in the Python community to write unit tests.
Victor
More information about the Python-ideas
mailing list