PyPy powers up Python 3.5

Pythonistas will be happy to hear that new versions of PyPy, the runtime for the Python language that provides just-in-time compilation and a major speed boost, will now support versions 2.7 and 3.5 of Python, including the new language syntax features found in version 3.5. Even more valuable to many developers: New versions of PyPy will have better support for popular packages that use C extensions, such as Numpy, in the Python 2.7-compatible version of the runtime. PyPys big draw is that by merely replacing the stock CPython interpreter with PyPy, it speeds up Python applicationssometimes by an order of magnitude or more. But PyPy has alsolagged behind the mainline version of Python in the language features it supports, meaning it could be a drop-in replacement for apps that dont use cutting-edge features. Development on the Python 3 branch of PyPy (PyPy3) has historically been behind the Python 2 branch. That changed last year when the Mozilla FoundationawardedPyPys developers $200,000 as part of its Open Source Initiative to further PyPy3 development.The investment seems to have paid off; PyPy3 now supports some of Pythons most recent innovations. One key area where PyPy lagged was support for Python 3s recent changes to the languages syntax that make it easier to perform asynchronous programming. Those changes were made to the language in late 2015, and PyPy3 now supports that syntax at last.Likewise, asyncio, a module added in Python 3.4 to provide asynchronous behaviors (per the async/await syntax added to Python 3.5), works in the latest PyPy3 editions and provides a sizable performance boost according to PyPys benchmarks. A few features from Python 3.6such asf-strings, a simplified option for in-place string formattinghave even been backported into PyPy3s current version. F-strings is not a universally beloved feature, but the fact it was added to the current PyPy3 edition is a sign that other features from future versions of Python could be back-adopted if needed.

Read Full Article at