Message323059
>>> 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. |
|
Date |
User |
Action |
Args |
2018-08-03 15:56:31 | ppperry | set | recipients:
+ ppperry, rhettinger, terry.reedy, serhiy.storchaka, xtreak, bansalanjali |
2018-08-03 15:56:31 | ppperry | set | messageid: <1533311791.76.0.56676864532.issue34331@psf.upfronthosting.co.za> |
2018-08-03 15:56:31 | ppperry | link | issue34331 messages |
2018-08-03 15:56:31 | ppperry | create | |
|