[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Python 2 vs 3

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 40
Thread images: 10

File: 1464128921116.png (1MB, 3200x500px) Image search: [Google]
1464128921116.png
1MB, 3200x500px
Seriously though

Python 2 or Python 3

I thought this would have been settled by now

which one to learn
>>
Learn 3.

Py2 is EoL in 2020
>>
>>60184469
3 is a mess, 2 isn't going anywhere. There are far too many millions of dollars invested in production code for it to ever go away and honestly I haven't seen 3 in use anywhere in any sort of serious capacity
>>
>>60184469
Theres really no difference. Just make a script to convert between versions when needed.
>>
>>60184547
>3 is a mess

Explain. For a newcomer with no projects they have to convert what is wrong with starting with 3.
>>
>>60184496
Thanks to the magik of Open Source, EOL means nothing.
>>
>>60184577
He's talking out of his ass. Ignore.

Learn 3
>>
>>60184547
>3 is a mess
I hate python, but you're an idiot.
>>
File: 542155154454545.png (178KB, 1190x906px) Image search: [Google]
542155154454545.png
178KB, 1190x906px
>>60184547
>>
File: op-12.png (284KB, 200x1133px) Image search: [Google]
op-12.png
284KB, 200x1133px
>>60184469
>debian is a lesser ubuntu
>debian stable is a bad thing
Wow OP, you and your image really are faggots.
>>
File: DSC_3023s.jpg (166KB, 500x750px) Image search: [Google]
DSC_3023s.jpg
166KB, 500x750px
you can get the x-large python double dong and use both at once
>>
>>60184469
If you are starting now, go for 3 obviously
Why would you start of with an older version lol
>>
>>60184547
Fuck off Zed Shaw
>>
>>60184469
3 is the latest version.
The latest versions of things are always better.

QED.
>>
File: win10_presentation.jpg (829KB, 2000x1333px) Image search: [Google]
win10_presentation.jpg
829KB, 2000x1333px
>>60185411
>The latest versions of things are always better.
>>
>>60184469
Learn 3.
Keep up or get left behind.
>>
>>60184469
stop using old crap. stop using old crap. stop opting to use old crap that will no longer be supported. stop stop stop.

every time you think about typing "python2 ddos.py" into bash, remember that you are literally the equivalent of government computers on windows xp.

the only production product i'm working on right now in python2 is one where using twisted for performance reasons made sense.

here's an easy way to figure out if you should be using python2 for your brand new project:

do I have any dependencies that are non-fungible that are not available in python3? this project should be oriented towards python2.
>>
>>60184583
>open source
>programming language
what
>>
>>60184469
also they're the same fucking language.

class Faggot():
class Faggot(object)


print("op is a faggot")
print "op is a faggot"


congratulations, you now know 2 of about 5 differences between the py3 and py2 that you will encounter on a regular basis.
>>
>>60184469
If you're a beginner, you might as well use Python 3, fixes a lot of shit in the os and subprocess libraries, specially useful if you're using Windows and needs to handle Unicode data.

Only use Python 2 if you need to maintain and fix legacy scripts, if you use older systems like Windows XP or if you use PyQt4 (PyQt5 uses Python 3).
>>
>>60184469
Learn 3. It's all downhill for 2 from here, it's already taken a significant hit to it's popularity, it's not like five years ago when using Python 3 was continual agony from dependencies not supporting it.

Regardless, the differences are minimal, you are not going to need more than twenty minutes reading on the Internet to familiarize yourself with what's different in Python 2 once you're proficient with 3.
>>
>>60186480
stfu
>>
They're both the same shit, fuck off.
>>
Why is Windows the best looking burger?
Gentoo is a good-ass meme though.
>>
File: wSehaCstskSf6.gif (2MB, 400x200px) Image search: [Google]
wSehaCstskSf6.gif
2MB, 400x200px
>>60186480
>stop using old crap. stop using old crap. stop opting to use old crap that will no longer be supported. stop stop stop.

Change is SCARY anon. Also
>>
>>60184677
>debian is much buggier and has less software than ubuntu
>debian stable has software so old it's getting moldy
looks about right to me.

>>60186661
*ubuntu+Windows dual-boot is the perfect solution.
>>
>>60186480
web crawling?
>>
>>60184469
2, just for the sake of your sanity, your development, and for all that is right, stick with 2
>>
File: Screenshot_2017-05-02_23-03-39.png (66KB, 1130x516px) Image search: [Google]
Screenshot_2017-05-02_23-03-39.png
66KB, 1130x516px
I'll let the picture speak for itself.
Use your EYES, OP.
Maybe --JUST MAYBE--, even use your brain to think.
>>
I get paid $210K/year salary for managing a bunch of Python engineers and also writing Python for a large non-SV tech company.

Learn Python3.
>>
>not backwards compatible
fuck Python
wtf were they thinking
>>
>>60188862

I came here to say this.
>>
File: images.jpg (7KB, 230x219px) Image search: [Google]
images.jpg
7KB, 230x219px
so why the fuck does my uni tell me to use 2?
>>
>>60188862
Price of progress.
>>
>>60184469
someone add kali to that image
>>
>>60188862
Staying backwards compatible would mean staying horrible. Python 2 is pretty broken in some ways, and it can't be fixed while staying compatible.
>>
File: 1488299427892.jpg (22KB, 718x717px) Image search: [Google]
1488299427892.jpg
22KB, 718x717px
>>60184469
3 is based. I main python professionally and new projects I always go to 3, a lot legacy code is still 2.

But 3.6 has better string formatting and asyncio standards mainly.
>>
File: python3000.png (68KB, 600x465px) Image search: [Google]
python3000.png
68KB, 600x465px
>>
>>60184583
community has been moving towards 3 for a while now.

Most of the well known libraries are already on 3, many more ported over to 3 in coming years.

Kinda useless to stick to 2 when you can learn 3.
>>
>>60188862
They did backport everything in 3 to 2 for a while (maybe still doing it). But this is a horrible idea because it discourages adoption of the newer version and consumes a lot of man hours.

If you ever decide to break your old API or language in a new version, current consensus is to not backport new functionality. Usually a new version warrants fundamental change so you want as many users on that train.
Thread posts: 40
Thread images: 10


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.