clean up py3 info more
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by David Lord · committed by David Lord · parent 00c200e · Browse files · 2 files·+18 added−28 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+18 added−28 removed
- other:+18 added−28 removed
Provenance
- Commit
baa2689- Tree
dbccd0d- Author
David Lord <davidism@gmail.com>- Committer
David Lord <davidism@gmail.com>- Parent
00c200e
2 files changed+18 added−28 removed
modified:docs/advanced_foreword.rst+3 added-3 removed
45 unmodified lines46 Flask is no different from any other framework in that you the developer must47 build with caution, watching for exploits when building to your requirements.48 49 Python 3 Support in Flask50-----------------------50+-------------------------51 52-If you think of using Flask with Python 3 have a look at the53-:ref:`python3-support` page.52+Flask, its dependencies, and most Flask extensions all support Python 3.53+If you want to use Flask with Python 3 have a look at the :ref:`python3-support` page.54 55 Continue to :ref:`installation` or the :ref:`quickstart`.modified:docs/python3.rst+15 added-25 removed
1 unmodified line2 3 Python 3 Support4 ================5 6-Flask and all of its dependencies support Python 3 so you can in theory7-start working on it already. There are however a few things you should be8-aware of before you start using Python 3 for your next project.6+Flask, its dependencies, and most Flask extensions support Python 3.7+You should start using Python 3 for your next project,8+but there are a few things to be aware of.9 10-If you want to use Flask with Python 3 you will need to use Python 3.3 or11-higher. 3.2 and older are *not* supported.10+You need to use Python 3.3 or higher. 3.2 and older are *not* supported.11 13-In addition to that you need to use the latest and greatest versions of14-`itsdangerous`, `Jinja2` and `Werkzeug`. Flask 0.10 and Werkzeug 0.9 were15-the first versions to introduce Python 3 support.12+You should use the latest versions of all Flask-related packages.13+Flask 0.10 and Werkzeug 0.9 were the first versions to introduce Python 3 support.14 17-Some of the decisions made in regards to unicode and byte utilization on18-Python 3 make it hard to write low level code. This mainly affects WSGI19-middlewares and interacting with the WSGI provided information. Werkzeug20-wraps all that information in high-level helpers but some of those were21-specifically added for the Python 3 support and are quite new.15+Python 3 changed how unicode and bytes are handled,16+which complicated how low level code handles HTTP data.17+This mainly affects WSGI middleware interacting with the WSGI ``environ`` data.18+Werkzeug wraps that information in high-level helpers,19+so encoding issues should not effect you.20 23-Unless you require absolute compatibility, you should be fine with Python 324-nowadays. Most libraries and Flask extensions have been ported by now and25-using Flask with Python 3 is generally a smooth ride. However, keep in mind26-that most libraries (including Werkzeug and Flask) might not quite as stable27-on Python 3 yet. You might therefore sometimes run into bugs that are28-usually encoding-related.29-30-The majority of the upgrade pain is in the lower-level libraries like31-Flask and Werkzeug and not in the actual high-level application code. For32-instance all of the Flask examples that are in the Flask repository work33-out of the box on both 2.x and 3.x and did not require a single line of34-code changed.21+The majority of the upgrade work is in the lower-level libraries like22+Flask and Werkzeug, not the high-level application code.23+For example, all of the examples in the Flask repository work on both Python 2 and 324+and did not require a single line of code changed.