How does Python compile some its code in C?
- by Howcan
I read that some constructs of Python are more efficient because they are compiled in C.
https://wiki.python.org/moin/PythonSpeed/PerformanceTips
Some of the examples used were map() and filter(). I was wondering how Python is able to do this? It's generally interpreted, so how does some of the code get compiled while another is interpreted - and in a different language? Why not just compile the whole thing?