[issue32060] Should an ABC fail if no abstract methods are defined?

Alex Corcoles report at bugs.python.org
Fri Nov 17 13:04:03 EST 2017


Alex Corcoles <alex at pdp7.net> added the comment:

Are you referring to something akin to Java's marker interfaces? That is, a class with no methods which you inherit from just for semantic meaning (e.g. Java's serializable interface that you implement to indicate that the class is designed for pickling).

In that case, I suppose the docs could mention this clearly so this is more "discoverable" to noobs like me and prevent further issues like this (I think mine wasn't an unreasonable expectation).

In any case, it's a minor point and I don't feel I have enough authority to discuss this topic- it's fine to close this.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32060>
_______________________________________


More information about the Python-bugs-list mailing list