Why wasn't PyPy included in standard Python?

后端 未结 6 1940
梦毁少年i
梦毁少年i 2021-01-29 19:28

I was looking at PyPy and I was just wondering why it hasn\'t been adopted into the mainline Python distributions. Wouldn\'t things like JIT compilation and lower memory footpri

6条回答
  •  清歌不尽
    2021-01-29 19:56

    For one, it's not 100% compatible with Python 2.x, and has only preliminary support for 3.x.

    It's also not something that could be merged - The Python implementation that is provided by PyPy is generated using a framework they have created, which is extremely cool, but also completely disparate with the existing CPython implementation. It would have to be a complete replacement.

    There are some very concrete differences between PyPy and CPython, a big one being how extension modules are supported - which, if you want to go beyond the standard library, is a big deal.

    It's also worth noting that PyPy isn't universally faster.

提交回复
热议问题