📜 ⬆️ ⬇️

New versions of Flask and Werkzeug with Python 3.3 support



Armin Rahner posted on his blog the news about updating popular web frameworks for python: Flask and its underlying Werkzeug. The most important change was the support of python version 3 (starting with 3.3 and above). Also, the low-level Werkzeug API was slightly modified to, on the one hand, implement support for the specification from the PEP 3333 , and on the other, not to lose in performance. With the new version, support for Python version 2.5 is lost.

If you are using Werkzeug, then you may have to tinker with the updated version. As for Flask, everything is somewhat simpler here, because The API hasn't changed much.
')
It is important to note that in a certain sense Flask and Werkzeug were somewhat delayed by the update, because the most popular components that make up the standard stack of the application: the Jinja2 and ORM SQLAlchemy template engine has been supporting the third version python for quite a long time. By the way, at one time, Armin criticized in his blog too radical language changes, and spoke rather coldly about the third version.

Other changes


Werkzeug



Flask




Current version numbers: Flask - 0.10, Werkzeug - 0.9.

And, for statistics, due to the constantly growing support of the third python by various large projects, a poll (you can vote for several options).

Source: https://habr.com/ru/post/183236/


All Articles