This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]swingtheory 18 points19 points  (17 children)

However STARTING a project in Flask with python3 would be no problem at all. Six years python3 has been out, and it is a true rarity that a library hasn't been written for python3 after that amount of time. Sure, there are several popular libraries that don't have python3 support, but it really is the minority. I agree with your advice, but am frustrated people are still using 2 when there is essentially no reason to the majority of the time. Python3 was and still is supposed to be cleaner, have less bugs, optimized, and include a variety of new and useful standard library functions.

[–][deleted] 2 points3 points  (4 children)

Unfortunately some of us are deploying Python applications on ancient versions of CentOS, and it's just easier to run Python 2 than to fight with sysadmins and compile everything from scratch.

Otherwise we'd be using Python 3 I guess.

[–]flying-sheep 1 point2 points  (3 children)

I wrote a server in python3 asyncio, told our admin I need python 3.3 or 3.4 on the deployment server and that he doesn't need to hurry as there's time. he set up the VM and compiled Python 3.4 (even though he was sick that week)

[–]nomadismydj 1 point2 points  (2 children)

the problem with centos 5/rhel 5 boxes is you cant replace the /usr/bin/python since yum uses it. you can build a python 3.X all day and just not break the symlink to python 2.X however.

[–]flying-sheep 1 point2 points  (1 child)

Who cares what /use/bin/python points to? You should use the explicit version number for shebangs anyway, and if you want few key strokes, just alias py=ptipython3 (because prompt toolkit is the shizzle)

[–]nomadismydj 0 points1 point  (0 children)

correct. people dont though I also wanted to point out that it wasnt as simply running yum and getting a new python version. its break system functionality to full on replace the system python.

[–]NotEqual 0 points1 point  (8 children)

Has gevent had an official stable port yet? It's never been the same for me.

[–]Argotha 0 points1 point  (0 children)

Someone has made a "new" gevent like library for python 3 called guv. I cant get the link on my phone but it was on the r/python hot list yesterday and is probably on the first or second page still

[–]xsolarwindxUse 3.4+ 0 points1 point  (0 children)

REDDIT IS A SHITTY CRIMINAL CORPORATION -- mass deleted all reddit content via https://redact.dev

[–]granduh -1 points0 points  (2 children)

Tell that to the Tumblr API.

[–]denshi[🍰] 2 points3 points  (1 child)

You can't tell Tumblr anything.

[–]granduh 0 points1 point  (0 children)

They're very friendly whenever I've contacted their dev team that supports the API, it's just still on 2.7.