Using __abstractmethod__ with non-methods

Eric Snow ericsnowcurrently at gmail.com
Fri Jun 24 00:11:54 EDT 2011


Just a follow up on the longer post I made [1]:

Is it bad to set __abstractmethod__ on non-functions in order to
trigger the ABC abstractness checks?

If not, are __isabstractmethod__ on objects and __abstractmethods__ on
classes misleading names?

Like I said before, I don't mean to imply that Python has it wrong.
On the contrary, I typically start by assuming that Python has it
right and then try to figure out what I am missing.  Such is the case
here.

-eric

[1] http://mail.python.org/pipermail/python-list/2011-June/1274555.html



More information about the Python-list mailing list