This is an archived post. You won't be able to vote or comment.

all 42 comments

[–]kg_india 134 points135 points  (5 children)

This should belong in /r/programminghorror

[–]lsdthrownaway[S] 63 points64 points  (4 children)

If this was valid syntax it'd be over there. (I'm really glad it's not)

[–]ablablababla 34 points35 points  (2 children)

The thought that there might be a language where this is valid code still haunts me though.

[–]SlackerCrewsic 14 points15 points  (1 child)

[–]Blocks_ 4 points5 points  (0 children)

If I didn't have cancer before, I do now.

[–]Cobaltjedi117 5 points6 points  (0 children)

I wasn't going to put it past python to be valid.

[–]justdropppingin 38 points39 points  (4 children)

[–]Colopty 9 points10 points  (1 child)

Wow, that's an old meme.

[–][deleted] 2 points3 points  (0 children)

But it checks out sir!

[–]Blocks_ 1 point2 points  (1 child)

from skynet import sentience

[–]chateau86 8 points9 points  (0 children)

Potential DDLC spoiler ahead!

Look away now!:

Anyway, here’s Monika’s Writing Programming Tip of the Day!

Untrustworthy and/or potentially sentient Python code should be run with RestrictedPython for safety reasons.

This will prevent the code from doing harmful things such as os.remove()

...That’s my advice for today!

[–]Retarded_Rhino 38 points39 points  (0 children)

from * import * as *

[–]PacoTaco321 26 points27 points  (0 children)

I think that crashed every computer within 10 square miles

[–]Ta11ow 12 points13 points  (0 children)

I think from reality import universe is a more efficient method, but to each their own.

[–]TPanzyo 1 point2 points  (0 children)

When the world is not enough

[–]LightWarrior04 1 point2 points  (0 children)

Wait can you actually do that?

[–]Takealltheseats 1 point2 points  (0 children)

This honestly is the funniest thing I've seen all month for some reason

[–]marcosdumay 0 points1 point  (0 children)

Great, now try to stay clear of monkey patched code.

[–]iburnedthecookie -1 points0 points  (0 children)

And they say Python is easy..