Comment by w-m
3 years ago
Not quite! The point of the article is that you don’t need to change the class of obj to override this instance check. If you have a look, ClassA always uses the hook implementation in the examples. And this can be shortened to just using instancecheck.
No comments yet
Contribute on Hacker News ↗