[Python-ideas] @Override decorator
ethan at stoneleaf.us
Mon Jul 18 14:57:40 EDT 2016
On 07/18/2016 09:44 AM, Shrey Desai wrote:
> While working on some object-oriented projects in Java, I noticed that Python does not have an *@override* decorator for methods that are derived from a parent class but overridden for the unique purposes of a base class. With the creation of the *@abstractmethod* decorator, the override decorator could follow in clearly distinguishing the logic and design between parent/base classes.
I certainly see the usefulness of such a decorator, but I don't think it needs to be in stdlib.
More information about the Python-ideas