5 Dec
2013
5 Dec
'13
9:19 p.m.
On Thu, Dec 5, 2013 at 3:06 PM, Brett Cannon <brett@python.org> wrote:
How will abstractmethod know its function has no body?
Technically you could inspect the code object of the method. to figure out if the body is empty.
One way if to check f.__code__.co_lnotab - it will be empty when f has no body.