1456
submitted 4 months ago by [email protected] to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 29 points 4 months ago

Python raw strings to the rescue!

[-] [email protected] 41 points 4 months ago

Pathlib is the answer.

[-] [email protected] 18 points 4 months ago

Nobody is stopping you from using forward slashes. Python will translate the path for the current platform.

[-] [email protected] 5 points 4 months ago

Python doesn't have to. Windows supports both out of the box. Has been for many, many years

[-] [email protected] 2 points 4 months ago
this post was submitted on 01 Feb 2025
1456 points (99.1% liked)

Programmer Humor

24648 readers
342 users here now

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

founded 2 years ago
MODERATORS