[New-bugs-announce] [issue34331] Incorrectly pluralized abstract class error message

ppperry report at bugs.python.org
Fri Aug 3 11:56:31 EDT 2018


New submission from ppperry <mapreader at olum.org>:

>>> class abstract(abc.ABC):
...     @abc.abstractmethod
...     def meth():
...         pass
...
>>> x()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: Can't instantiate abstract class x with abstract methods meth

Error should be "Can't instantiate abstract class abstract with abstract method meth" in the singular, because there is only one abstract method.

----------
components: Interpreter Core, Library (Lib)
messages: 323059
nosy: Anjali Bansal, ppperry, rhettinger, serhiy.storchaka, terry.reedy, xtreak
priority: normal
severity: normal
status: open
title: Incorrectly pluralized abstract class error message
versions: Python 3.8

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


More information about the New-bugs-announce mailing list