You are viewing a single thread.
View all comments
10 points

OSError: File or directory not found “C:WindowsSystem32”

permalink
report
reply
7 points
*

Nope. From the spec:

“Unlike Standard C, all unrecognized escape sequences are left in the string unchanged, i.e., the backslash is left in the result.”

permalink
report
parent
reply
6 points

This behavior is useful when debugging: if an escape sequence is mistyped, the resulting output is more easily recognized as broken.

Wow, this sentence really threw me for a moment. I had no idea how other programming languages behave.

…which makes sense, because they don’t. The compiler just tells you to fuck off and that’s the end of that story. I guess, they can’t do that in Python…

permalink
report
parent
reply
1 point

Python 3.12’s compiler tells you to fuck off

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 3.3K

    Monthly active users

  • 1K

    Posts

  • 37K

    Comments