Skip to content
Myr

python3.rst

This file

Path

docs/python3.rst

24 lines · 999 bytes

Last changed by

clean up py3 info moreDavid Lordbefore adoptionbaa2689

History of this file

Take it

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

Fix test under Python 3Markus Unterwaditzerbefore adoption1158e22

lines 1–5why, one step back
1.. _python3-support:
23Python 3 Support4================5

clean up py3 info moreDavid Lordbefore adoptionbaa2689

lines 6–8why, one step back
6Flask, its dependencies, and most Flask extensions support Python 3.
7You should start using Python 3 for your next project,8but there are a few things to be aware of.

Fix test under Python 3Markus Unterwaditzerbefore adoption1158e22

line 9why, one step back
9

clean up py3 info moreDavid Lordbefore adoptionbaa2689

line 10why, one step back
10You need to use Python 3.3 or higher. 3.2 and older are *not* supported.

Fix test under Python 3Markus Unterwaditzerbefore adoption1158e22

line 11why, one step back
11

clean up py3 info moreDavid Lordbefore adoptionbaa2689

lines 12–13why, one step back
12You should use the latest versions of all Flask-related packages.
13Flask 0.10 and Werkzeug 0.9 were the first versions to introduce Python 3 support.

Fix test under Python 3Markus Unterwaditzerbefore adoption1158e22

line 14why, one step back
14

clean up py3 info moreDavid Lordbefore adoptionbaa2689

lines 15–19why, one step back
15Python 3 changed how unicode and bytes are handled,
16which complicated how low level code handles HTTP data.17This mainly affects WSGI middleware interacting with the WSGI ``environ`` data.18Werkzeug wraps that information in high-level helpers,19so encoding issues should not effect you.

Fix test under Python 3Markus Unterwaditzerbefore adoption1158e22

line 20why, one step back
20

clean up py3 info moreDavid Lordbefore adoptionbaa2689

lines 21–24why, one step back
21The majority of the upgrade work is in the lower-level libraries like
22Flask and Werkzeug, not the high-level application code.23For example, all of the examples in the Flask repository work on both Python 2 and 324and did not require a single line of code changed.