Message291385
> # Can't instantiate abstract class X with abstract methods
Sorry, this is how ABCs are supposed to work. They use @abstractmethod to specify requirements that a subclass if required to implement. The ABC metaclass then enforces that requirement, preventing instantiation unless those requirements are met. If not met, they give a reasonably clear error message, "TypeError: Can't instantiate abstract class A with abstract methods __hash__". |
|
Date |
User |
Action |
Args |
2017-04-09 18:40:47 | rhettinger | set | recipients:
+ rhettinger, docs@python, max |
2017-04-09 18:40:47 | rhettinger | set | messageid: <1491763247.05.0.35238345932.issue30026@psf.upfronthosting.co.za> |
2017-04-09 18:40:47 | rhettinger | link | issue30026 messages |
2017-04-09 18:40:46 | rhettinger | create | |
|