Oh, just wait till you hit that sweet sweet python “Everything can have an else block”
if some_shit:
try:
for stuff in thing:
if stuff is bad:
raise ShitHitTheFanError
# Massive block comment
do = the_thing()
if do is good:
breakelse:
do = the_other_thing()
ifnot a_thing:
help_me() # May raise NoHelpFoundErrorexcept ShitHitTheFanError:
my_life = recover()
if my_life is bad:
for fuck in my_life:
try:
fix(fuck)
except NoHelpFoundError:
breakelse:
fuck_this_shit()
else:
wat_is_going_on()
else:
theres_another_one("?")
Have you ever tried to follow five hundred nested for loop and if statements? Shit is nuts…
Conway’s Game of Life is Turing Complete and that fact has been fucking with my mind for like 25 years.
Oh, just wait till you hit that sweet sweet python “Everything can have an
elseblock”if some_shit: try: for stuff in thing: if stuff is bad: raise ShitHitTheFanError # Massive block comment do = the_thing() if do is good: break else: do = the_other_thing() if not a_thing: help_me() # May raise NoHelpFoundError except ShitHitTheFanError: my_life = recover() if my_life is bad: for fuck in my_life: try: fix(fuck) except NoHelpFoundError: break else: fuck_this_shit() else: wat_is_going_on() else: theres_another_one("?")I’m a network engineer lol python is all I know… and yup, the else is a curve ball from hell
But this is absolutely fucking hilarious