1423
you are viewing a single comment's thread
view the rest of the comments
[-] pennomi@lemmy.world 30 points 4 days ago

Python raw strings to the rescue!

[-] Diplomjodler3@lemmy.world 41 points 4 days ago

Pathlib is the answer.

[-] joyjoy@lemm.ee 19 points 4 days ago

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

[-] Lichtblitz@discuss.tchncs.de 4 points 4 days ago

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

[-] three@lemm.ee 2 points 4 days ago
this post was submitted on 01 Feb 2025
1423 points (99.0% liked)

Programmer Humor

20033 readers
1527 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