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

Why does Python have so little bullshit syntax?

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: 24
Thread images: 4

File: angryjoetwitch.png (325KB, 637x347px) Image search: [Google]
angryjoetwitch.png
325KB, 637x347px
Why does Python have so little bullshit syntax?
>>
you mean so much

it just hides it in whitespace
>>
if i wanted to start learning python which version is better to go? there are shitloads of opinions
>>
>ERROR: Inconsistent use of tabs and spaces.
>>
>>58335827
What does Irritated Pablo have to do with it?
>>
>>58335992
The only reason to use 2.x is if there is some dependency you MUST have.
Otherwise, just use 3.
They are practically the same thing. If you know one, you can convert scripts to the other easily.
>>
>>58336310
So don't do that.
>>
>forced indentation
>so little bullshit

HAHAHAHAHHAHAHAHAHAHAHHAHAHAHAHHAHAHAHAHAHAHHAHAHAHAHHAHAHAHAHAHAHHAHAHAHAHHAHAHAHAHAHAHHAHAHAHAHHAHAHAHAHAHAH
>>
>>58335992
use 2 whoever goes with 3 is a faggot that says pythonic on stackoverflow.
>>
>>58336464
All my software has been Python 3 for years both paid and hobby projects.
I really don't understand why you would still need Python 2.
>>
http://nim-lang.org/docs/tut1.html#statements-and-indentation
>>
>>58336331

I'm not perfect
>>
File: syntactic whitespace.jpg (44KB, 840x500px) Image search: [Google]
syntactic whitespace.jpg
44KB, 840x500px
>>
File: 1461747564694.gif (2MB, 330x166px) Image search: [Google]
1461747564694.gif
2MB, 330x166px
>getting triggered by white space
>>
>>58337044
Configure your editor to show whitespace.
Most editors can do that.
>>
>so little bullshit syntax

>""" this """
>__shit__
>@ exists
>>
File: 1470430509245.gif (339KB, 492x376px) Image search: [Google]
1470430509245.gif
339KB, 492x376px
>>58335860
I'm not saying you're complaining but I don't get what the big deal is about whitespace.

Use an IDE (Sublime Text) that inserts 4 spaces every time you hit tab, problem solved. This is way easier to me than ending every line in a semicolon, because indention is much more obvious than a little punctuation at the end of a line.

Not to mention indentation makes the code look clean and tidy as fuck. And we all know readability is very important in code, especially in collaboration like open source.
>>
>>58336475
>I really don't understand why you would still need Python 2.

Especially when a Python 2 dictionary takes up literally twice as much space in memory compared to a Python 3.6 dictionary.

The only people still on 2 are the people whose jobs prevent them from upgrading. If you look on PyPi, 94% of the top 360 packages work with Python 3. It's superior in almost every way, both technically and syntactically.
>>
Test():
test
>>
>>58335827

ONE WORD
THE FORCED INDENTATION OF CODE
>>
Literally just hit tab you fucking virgins
>>
>>58344350
"Literally hit tab, you fucking virgins."

http://www.grammar-monster.com/lessons/vocative_case_commas.htm
https://en.wikipedia.org/wiki/Vocative_case
>>
>>58344867

http://literarydevices.net/pedantic/
https://en.wikipedia.org/wiki/Autism
>>
>>58344904
This particular grammatical error, the lack of a vocative case comma, is strangely widespread. I see it at least a dozen times every day, on /g/ alone.

Another curiosity is that the error rate seems to be correlated with certain insults. Sentences containing "faggot" are much more likely to lack the vocative case comma than sentences containing "retard".
Thread posts: 24
Thread images: 4


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