Skip to content
Myr

python3.rst

This file

Path

docs/python3.rst

34 lines · 1.6 KiB

Last changed by

Fix small typo in python3 docsSudheer Satyanarayanabefore adoption1ffd07f

History of this file

Take it

The walk stopped after 200 commits: lines older than a25ee7e point at it.

Merge pull request #1186 from llimllib/masterMarkus Unterwaditzerbefore adoptiona25ee7e

lines 1–13why, one step back
1.. _python3-support:
23Python 3 Support4================56Flask and all of its dependencies support Python 3 so you can in theory7start working on it already. There are however a few things you should be8aware of before you start using Python 3 for your next project.910If you want to use Flask with Python 3 you will need to use Python 3.3 or11higher. 3.2 and older are *not* supported.1213In addition to that you need to use the latest and greatest versions of

Merge pull request #1264 from svenstaro/patch-1Markus Unterwaditzerbefore adoption86525d9

lines 14–15why, one step back
14`itsdangerous`, `Jinja2` and `Werkzeug`. Flask 0.10 and Werkzeug 0.9 were
15the first versions to introduce Python 3 support.

Merge pull request #1186 from llimllib/masterMarkus Unterwaditzerbefore adoptiona25ee7e

lines 16–22why, one step back
16
17Some of the decisions made in regards to unicode and byte utilization on18Python 3 make it hard to write low level code. This mainly affects WSGI19middlewares and interacting with the WSGI provided information. Werkzeug20wraps all that information in high-level helpers but some of those were21specifically added for the Python 3 support and are quite new.22

Merge pull request #1264 from svenstaro/patch-1Markus Unterwaditzerbefore adoption86525d9

lines 23–25why, one step back
23Unless you require absolute compatibility, you should be fine with Python 3
24nowadays. Most libraries and Flask extensions have been ported by now and25using Flask with Python 3 is generally a smooth ride. However, keep in mind

Fix small typo in python3 docsSudheer Satyanarayanabefore adoption1ffd07f

lines 26–27why, one step back
26that most libraries (including Werkzeug and Flask) might not be quite as
27stable on Python 3 yet. You might therefore sometimes run into bugs that are

Merge pull request #1264 from svenstaro/patch-1Markus Unterwaditzerbefore adoption86525d9

line 28why, one step back
28usually encoding-related.

Merge pull request #1186 from llimllib/masterMarkus Unterwaditzerbefore adoptiona25ee7e

line 29why, one step back
29

Merge pull request #1418 from alexwlchan/masterKeyan Pishdadianbefore adoptiondac45f6

line 30why, one step back
30The majority of the upgrade pain is in the lower-level libraries like

Merge pull request #1186 from llimllib/masterMarkus Unterwaditzerbefore adoptiona25ee7e

lines 31–34why, one step back
31Flask and Werkzeug and not in the actual high-level application code. For
32instance all of the Flask examples that are in the Flask repository work33out of the box on both 2.x and 3.x and did not require a single line of34code changed.