Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- In [125]: from abc import ABC, abstractmethod
- ...: class C(ABC):
- ...: def __init__(self):
- ...: self._x = None
- ...: @property
- ...: def x(self):
- ...: """I'm the 'x' property"""
- ...: return self._x
- ...: @x.setter
- ...: @abstractmethod
- ...: def x(self, value):
- ...: self._x = value
- ...: @x.deleter
- ...: def x(self):
- ...: del self._x
- ...: class D(C):
- ...: pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement