Comment by IshKebab
3 years ago
__subclasshook__ is exactly the sort of nonsense that makes Python code a complete mess and impossible to optimise. I'm going to take a wild guess that none of the "fast" Python variants (Cython, Micropython, RPython etc.) support it.
I'm going to take a wild guess that none of the "fast" Python variants (Cython, Micropython, RPython etc.) support it.
Cython at least aims to be a superset of Python, so it will support it sooner or later. However I don't doubt that using it will make your cython code stop being "fast".