3 ms·
CPython doesn't, but there is Mypyc [1] which compiles statically typed Python to faster C extensions leveraging the type information. As usual, this comes with
by morningsam 2y ago
CPython doesn't, but there is Mypyc [1] which compiles statically typed Python to faster C extensions leveraging the type information. As usual, this comes with tons of limitations [2]
[1]: https://mypyc.readthedocs.io/en/stable/ https://mypyc.readthedocs.io/en/stable/
[2]: https://mypyc.readthedocs.io/en/stable/differences_from_python.html#unsupported-features https://mypyc.readthedocs.io/en/stable/differences_from_pyth...