python3.rst
This file
Path
docs/python3.rst
23 lines · 1001 bytes
Last changed by
Merge branch 'master' into jrmccarthy-masterDavid Lordbefore adoption8ad4f47
History of this fileTake it
1.. _python3-support:23Python 3 Support4================56Flask, 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.910You need to use Python 3.3 or higher. 3.2 and older are *not* supported.1112You 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.1415Python 3 changed how unicode and bytes are handled, which complicates how low16level code handles HTTP data. This mainly affects WSGI middleware interacting17with the WSGI ``environ`` data. Werkzeug wraps that information in high-level18helpers, so encoding issues should not affect you.1920The majority of the upgrade work is in the lower-level libraries like21Flask and Werkzeug, not the high-level application code.22For example, all of the examples in the Flask repository work on both Python 2 and 323and did not require a single line of code changed.