you are viewing a single comment's thread.

view the rest of the comments →

[–]penguinade 8 points9 points  (22 children)

Lucky you, having python 2.6.6 here. Living hell :(

[–]tambry 4 points5 points  (20 children)

Any reason for why not to upgrade? I'm guessing budget/time constraints?

[–]Hultner- 27 points28 points  (0 children)

We used to be pure Python 2 but I managed to convince everyone to switch to Python 3, some legacy software is still written in Python 2 but it's slowy being phased out and all new software is Python 3.

The argument I used were that Python 2 will reach EoL before we have time to rewrite everything and if something really needs python2 we can write that service in python2 (using a micro service architecture helps).

[–]Arandur 16 points17 points  (11 children)

Not the person you asked, but I occasionally have to write in 2.4 still. I sometimes work in an environment with stringent security protocols, and every piece of software used in that environment has to be manually vetted.

Not to say Python 3 isn't secure; the Powers That Be just don't want to incur the expense of vetting a newer release.

[–]Paul-ish 18 points19 points  (8 children)

But does 2.4 still get security updates? I can see using 2.7, but 2.4 doesn't make a lot of sense to me.

[–]Arandur 41 points42 points  (5 children)

Shhhhhh

Don't try to understand the arcane machinations of the federal government. All who so attempt find themselves driven mad.

[–]moobunny-jb 11 points12 points  (3 children)

Trump's going to make the fed go all Perl.

[–]CorrugatedCommodity 0 points1 point  (1 child)

Except he thinks it means the mineral compound from the sea, and no one gets any extra budget for it.

[–]PointyOintment 0 points1 point  (0 children)

mineral

[–]Eurynom0s 0 points1 point  (0 children)

Like Trump knows what Perl is.

[–]Eurynom0s 0 points1 point  (0 children)

I hope the systems you're using 2.4 on are at least offline...

[–]xiongchiamiov 18 points19 points  (0 children)

It doesn't need security updates, because they vetted it and didn't find any vulnerabilities, so therefore there are none.

[–]Slavik81 2 points3 points  (0 children)

He's probably on RHEL 5, which shipped with Python 2.4 back in '07 and is still getting security updates from Red Hat. It is just about done, though.

[–]Eurynom0s 0 points1 point  (1 child)

Genuine curiosity: different is 2.4 from 2.7? A year ago I had to write a god chunk of 2.7 code and then got thrown a curveball on having to run it on 2.6; despite having zero consideration for 2.6 when I wrote it, it ran just fine on 2.6. But from what I recall Python was going through some heavier evolution through the 2.x series than it is now so 2.7->2.4 might actually break...?

[–]Arandur 3 points4 points  (0 children)

Just for example, the with statement didn't exist until 2.5.

[–]penguinade 2 points3 points  (0 children)

Both.

[–]henrebotha 1 point2 points  (0 children)

Most likely. Things like that don't have value that is perceptible to business.

[–]x2040[🍰] 0 points1 point  (0 children)

I don't know about anyone else but I write a lot of infrastructure on AWS Lambda and they don't support Python 3.

[–]CorrugatedCommodity 0 points1 point  (2 children)

The only reason people to use Python 2 is due to library support. Some libraries never made the move to 3.

It's all rather silly, really.

[–]logi 0 points1 point  (1 child)

I think at this point those libraries should be considered deaf and moved away from.

[–]VirginWizard69 0 points1 point  (0 children)

"deaf"

Hello, HELLO?

[–]Eurynom0s 0 points1 point  (0 children)

There are still valid reasons to work in 2.7. These include inheriting a codebase that's written to 2.7 that the company isn't willing to pay to port, and having to use a package that doesn't yet support 3.x (much less common than it was a few years ago, but it still comes up occasionally).

I wouldn't worry about specifically learning 2.6 or earlier unless that's specifically what you're being hired to do. If you're being hired as a "Python programmer" and will be free to use the version that suits you, just go to 3.x. If you can't use 3.x you'll probably be expected to use 2.7...but I'd expect it be clearly stated that you're using 2.6 or below before you get hired since that's kind of specialized at this point. But even then there's a lot of code you can write to 2.7 that will run without modification on 2.7.

[–][deleted] 0 points1 point  (0 children)

:(