Comment by CGamesPlay
3 years ago
It seems like the main problem here is that Python does not enforce that the subclass hook method is pure and so allows you to create buggy implementations. The spec should mandate that the method is pure and causing side effects should be a runtime (or compile time) error.
No comments yet
Contribute on Hacker News ↗