[New-bugs-announce] [issue32060] Should an ABC fail if no abstract methods are defined?

Alex Corcoles report at bugs.python.org
Fri Nov 17 07:35:55 EST 2017


New submission from Alex Corcoles <alex at pdp7.net>:

Hi,

$ python3
Python 3.5.3 (default, Jan 19 2017, 14:11:04) 
>>> import abc
>>> class Foo(abc.ABC):
...     pass
... 
>>> Foo()
<__main__.Foo object at 0x7f253e6dcb38>

I think declaring a class as ABC without declaring any abstract method is an error.

I've tried searching if this was already discussed, but did not find it. Maybe it is related to https://bugs.python.org/issue9731

Cheers,

Álex

----------
messages: 306433
nosy: Alex Corcoles
priority: normal
severity: normal
status: open
title: Should an ABC fail if no abstract methods are defined?
type: behavior
versions: Python 3.5

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


More information about the New-bugs-announce mailing list