Add type.__instancecheck__ and __subclasscheck__
We supported classes that overrode them, but didn't provide a default implementation in case people called it by hand. The tricky part is making sure that these new additions don't mess with our "does this class override __instancecheck__" optimizations.
Showing
Please register or sign in to comment