4 ms·
So we're a PHP shop thinking about moving to Python. With this release, can we immediately start using version 3? The Flask page still recommends holding back.
by cstuder 13y ago
So we're a PHP shop thinking about moving to Python. With this release, can we immediately start using version 3?
The Flask page still recommends holding back... (http://flask.pocoo.org/docs/python3/ http://flask.pocoo.org/docs/python3/)
- irahul 13y ago> With this release, can we immediately start using version 3? You should stick with 2.7 As mentioned in your linked blog post, porting Flask to Python 3 wasn't the issue. The issue is the other libraries which you will use to build your web application which aren't on Python 3 yet. You can try to build a unified code base(runs on both 2.7 and 3) http://lucumr.pocoo.org/2013/5/21/porting-to-python-3-redux/ http://lucumr.pocoo.org/2013/5/21/porting-to-python-3-redux/
- corford 13y agoLike irahul has said, the issue is the Flask extension ecosystem and documentation lag rather than Flask itself. Which basically means YMMV depending on what you need to get done :) If you are writing most of your own code and not using Flask extensions then you could well be fine (unless, like the linked post says, you discover a few months down the line you _do_ need a couple of extensions and they haven't been ported yet!). Also worth pointing out that lots of other great python libraries now fully support python3 so you can get a lot done with just Flask on its own and those e.g. requests, redis-py, psycopg2, pytz.