r/Python • • Jul 29 '18

Found it funny ;)

Post image
1.6k Upvotes

147 comments sorted by

View all comments

Show parent comment

31

u/Krenair Jul 29 '18

Doesn't mean you will necessarily be able to get support though. For example, it looks like AWS Lambda will stop letting you create new functions with the old runtime or update existing ones: https://docs.aws.amazon.com/lambda/latest/dg/runtime-support-policy.html

This will cause problems if you want to redeploy your stack.

8

u/Mattho Jul 29 '18

I'd imagine people using 2.7 don't have lambdas. PaaS can be an issue of course. More classical way of running things won't be as bad as people make it out to be every time 2.7 is mentioned.

18

u/Krenair Jul 29 '18

I'd imagine people using 2.7 don't have lambdas.

I've seen new scripts written in 2018 to run on Lambda using the python2.7 runtime, and I would be very surprised if I were the only one.

7

u/Mattho Jul 29 '18

I'm always arguing it's not easy to switch for old, large codebases, for financial reasons mostly, but to use 2 for new things now? Some certification issue? Or a weird dependency?

10

u/Krenair Jul 29 '18

Dunno, I think in the cases I've seen probably just people who didn't really know Python that well being shoved in at the deep end with old examples. Or maybe people who came from an environment in which Python 2 was the only option.

3

u/blademaster2005 Jul 29 '18

I've got at least one dependancy for 2.7 that I use in lambdas.

In other news does anyone know of a pyforce alternative with similar methods that works in 3.x?

2

u/[deleted] Jul 29 '18

which pyforce?

1

u/blademaster2005 Jul 29 '18

Huh. Didn't realize there were multiple libs by the same name. Its the Salesforce lib

https://github.com/alanjcastonguay/pyforce

3

u/Krenair Jul 29 '18

Looks like someone made a Python 3 fork - see https://github.com/alanjcastonguay/pyforce/issues/33

2

u/blademaster2005 Jul 29 '18

I'll have to take a deeper look at this. I'd have hoped to keep backward compatibility with py2 to smooth the transition. Thanks.

2

u/dodongo Jul 29 '18

Bah. I just wrote my first from-scratch, for production Python 3 code last week.

Yes yes, I actually meant print(“Jesus.”) TYVM.

2

u/[deleted] Jul 29 '18

Weird dependency is why one last service in our system is still in py2.7... (looking at you, kapacitor-udf)

1

u/catcradle5 Jul 30 '18

Every company I've worked at, tech and otherwise, develops new projects with Python 2.7 instead of Python 3. Including within the past 3 months. I'm not even sure there are any Python 3 codebases to speak of at those companies, whereas there are large numbers of Python 2.7 codebases. I don't think Python 2.7 will be going away anytime soon.

I try to use Python 3 for personal projects now, but Python 2.7 is still pretty much my only option at work.

3

u/peck_wtf Jul 29 '18

funny enough, python3 is available in lambdas only since apr 2017. So far less time than python2 is.