[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 or 3 and why?

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: 39
Thread images: 5

File: 1496703265616.jpg (102KB, 1280x720px) Image search: [Google]
1496703265616.jpg
102KB, 1280x720px
Python 2 or 3 and why?
>>
What are you planning to make?
>>
I rewatched every episode of nichibros at least 1 time when it aired. The only anime that made me do it.
>>
>>60888541
3
Because print isn't a statement, it's a function. Because it uses unicode strings by default, not ASCII.
>>
3 is better 3 is faster 3 has support for cool shit like asyncio etc.
>>
>>60888646
Nichijou was better
>>
>>60888541
Neither.

2 is a dead language.

3 is a bloated language that broke everybody's working code for no reason and keeps adding useless piles of features without ever actually giving people what they ACTUALLY want - things like a faster interpreter or getting rid of the GIL. And anybody who has actually bothered looking at CPython's internals knows exactly why this is unlikely to ever change.

Honestly, the only reason I would ever recommend anybody actually use Python these days is because of the scripting languages available on most Linux distros out of the box, Python is the least bad by a mile (compared to Perl and Bourne Shell). For serious programs, lean something else.
>>
>>60888541
3 because is one more than 2
>>
File: 1441843518228.png (30KB, 633x758px) Image search: [Google]
1441843518228.png
30KB, 633x758px
3 because it's what I use for my studies along with R
>>
Python 2 is a dying language, anyone who tells you otherwise is literally Zed Shaw.
>>
>>60888541
3 because 2 will be dead in just over 2 years. Also has cool new features and is generally faster. 3.6 is better than 2.7 in every way, less true for anything earlier than that.
>>
>>60889539
Not even Zed Shaw is hitching his wagon to Python 2 anymore. He's finally remaking his python books for Python 3.
>>
>>60888541
I prefer html
>>
well fuck. i've been using 2 for a long time. i didn't think it was dying so quick. this is definitely a feels bad to me
>>
python 2 because it makes anime real desu
>>
File: Lua Logo.png (72KB, 1200x1200px) Image search: [Google]
Lua Logo.png
72KB, 1200x1200px
>>60888541
Lua
>>
>>60888541
NANIIIIIIII

You really have to hear it for that whole scene to have the same effect. God damn that shit made me laugh so hard.
>>
>>60890371
this is the real actual answer.

python is a big and complicated language, you can literally learn all of lua in 15 minutes and it composes well into doing actually useful stuff.

plus, since it's an embedded language first and foremost, you have nice things like LOVE2D and Pico-8 and other all-in-one environments that allow you to start doing fun stuff sooner.
>>
>>60888541
3
>>
>>60890371
Lua is only useful as an embedded language.
>>
>>60888541
2 because I support deprecation over removal and 3 breaks with this idea. Java strong.
>>
>>60890371
Why Lua instead of Moonscript?
>>
>>60888541
python3. stop being a retard, there's a reason it's a newer version. unicode strings / encode decode semantics, bug fixes, a faster interpreter
it's like asking "Linux 2.1 vs Linux 4.11???"
>>
>>60891796
because nobody knows what the fuck moonscript is and it requires an extra compile step.

that shit is annoying enough with typescript, and typescript is a good and popular language.
>>
File: 26080379.jpg (22KB, 400x534px) Image search: [Google]
26080379.jpg
22KB, 400x534px
>>60888541
2 so I don't have to type as much to print things.
>>
3. Don't build new systems from the ground up using legacy tech.
>>
>>60889417
+tic neesan > nichibros = kill me baby > nichijou

Nichijou should have been half as long and kept the better half of the sketches.
>>
>>60888671
And it has the unpack operator
>>
>>60893697
And keyword only arguments
>>
>>60892832
Correct about Nichijou but Kill me Baby was objectively GOAT
>>
>>60888541
Python 3 is better. Use Python 2 if there is some major must use library for your project that has not updated.
>>
Unless you're a scientist, use 3.
>>
>>60889468
Use PyPy. Also the scripting language usually everywhere is the write-only Perl.
>>
>>60889357
It can be done with threads.
>>
>>60888541
3 because it goes like 1 > 2 > 3 (...)
>>
Quit programming and become my trap sugar girl
>>
>>60890371
This.

Think about it: Python is over 500 thousands of lines of bloat, while Lua without standard libraries is 10000 lines of clean C.
>>
>>60889468
this tbqh
>>
>>60895094
Sure mate, handle 10000 sockets with one thread each and let me know how that goes.
Thread posts: 39
Thread images: 5


[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.