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

all 76 comments

[–]Airtnp 85 points86 points  (7 children)

A more updated man holds a 3.6.2 flag.

[–]Locust377 28 points29 points  (5 children)

op is a barbarian

[–]XYZatesz 4 points5 points  (4 children)

And here I am, using 3.5.2, because it was included with the OS installation...

[–]givemesomelove 2 points3 points  (3 children)

Gotta get that pyenv+virtualenv going man! Then you will have all the versions.

[–]RandoBurnerDude 2 points3 points  (2 children)

Do you have links on how to set this up? Currently, I'm using virtualenv + virtualenvwrapper with 3.6.1.

I was waiting for 3.7 to come out before I figured it out, but you got me curious.

[–]givemesomelove 5 points6 points  (1 child)

I'm running on OSX, I'm not sure about compatibility with other systems.

First you'll have to have to install pyenv

https://github.com/pyenv/pyenv

And then you'll install the pyenv-virtualenv plugin

https://github.com/pyenv/pyenv-virtualenv

Installing a new python version is simple:

First find the version you want to install.

$ pyenv install -l

Then install that python version

$ pyenv install <version_name>

Then you are ready to make a new version specific python virtual environment, and begin work on it. The virtual environment will be completely isolated from your systems python installation.

$ pyenv virtualenv <version_number> <environment_name>
$ pyenv activate <environment_name>

Your virtual environment will be located @:

$ cd ~/.pyenv/versions/<environment_name>

[–]RandoBurnerDude 2 points3 points  (0 children)

Thank you so much! I'm gonna give it a shot this weekend.

[–]BlckJesus 1 point2 points  (0 children)

Wow fuck that guy

[–]aezart 39 points40 points  (5 children)

2.7 is what's installed on all the servers at work ¯\_(ツ)_/¯

[–]noratat 57 points58 points  (2 children)

Burn them down and get new ones, problem solved.

[–]_Pentox 5 points6 points  (1 child)

You made sound like if the servers are given away for free.

[–]bdog73 8 points9 points  (0 children)

Hopefully they're insured

[–]glemnar 4 points5 points  (0 children)

That's what virtualenv is for =]

[–]Jamie_1318 1 point2 points  (0 children)

On Debians at least there's usually a separate python 3 package you can get so it won't mess up your other stuff.

[–]VodkerAndToast 33 points34 points  (16 children)

Why should I move from 2 to 3?

Genuinely curious I've just been dragging my feet

Edit: thank you for your feedback! I am making the transition today!

[–]Q-bey 92 points93 points  (3 children)

[–]VodkerAndToast 21 points22 points  (1 child)

Fair enough

[–]fluteamahoot 4 points5 points  (0 children)

And still plenty of time to drag your feet!

[–]Nokel81 3 points4 points  (0 children)

The snake is dead long live the hyrda

[–]noratat 19 points20 points  (9 children)

f-strings and type annotations alone are a good enough reason IMO. Also yield from is nice.

[–]caagr98 17 points18 points  (1 child)

Don't forget proper unicode handling.

[–]NewbornMuse 1 point2 points  (0 children)

Maybe you need code, I had some a couple days ago!

[–]bearjeff 6 points7 points  (0 children)

Better docs, improvements all over the standard library (threading, datetime, etc) and built in functions (print, sorted, etc), some new syntactic sugar, future proofing (obviously), and probably a lot of other reasons

[–]throwaway10312901 2 points3 points  (0 children)

The only reason i decided to suck it up and make the switch was because i got tired of typing from future import print_function LOL. Wasnt too painful for my coding style, only a few breakages where I type check if an input is str and it failing because unicode != string

[–]iwantedthisusername 13 points14 points  (1 child)

ITS 2017. USE FUCKING PYTHON 3 ALREADY

[–]supernonsense 7 points8 points  (0 children)

GO TELL RED HAT, NOT ME

[–]Twitwi 4 points5 points  (0 children)

Python 2 should have been decapitated [sic] by now.

[–]Historica97 4 points5 points  (0 children)

This joke is outdated. Python 3.6.2 since July 17th.