Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

>mfw python doesnt have a switch statement

Name: Anonymous 2013-09-06 21:59

>mfw ruby has had one forever
>mfw deluded pythonfags think their shitty dictionary hack and typing elif x == dozens of times is elegant and not cumbersome at all

{'option1': function1,
 'option2': function2,
 'option3': function3,
 'option4': function4,
}.get(value, defaultfunction)()

Name: Anonymous 2013-09-06 22:01

>__ha_ha_i_am_defining_le_internal_method__
>print keyword as opposed to function
>assignments aren't expressions
>"x = y = z" is actually a special case to the interpreter
>"if x is not None" is another special case, you'd expect "if not x is None"
>expressions in default statements are evaluated at define time instead of call time
>castrated lambdas that are basically return statements without the return
>no fucking switch/case
>abbreviated shit everywhere
>shit like copy.copy, dis.dis, etc. Gotta namespace everything right?
>string.join(array)
>absolute bullshit http, email, time standard libraries
>no regular expression literals
>half-assed tacked-on OOP
>old style vs. new style classes
>multiple inheritance
>extremely inconsistent regarding what is a method and what is a function
>list slicing
>that horrible fragmented package management
>triple quoted strings, I mean what the fuck?
>immutable strings
>u"string"
>significant whitespace that doesn't really enforce any kind of coding style like python people claim
>hurrr u cant do dat its not pytonic
>__did_you_really_think_this_would_look_like_anything_but_an_ugly_fucking_hack__

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List