this post was submitted on 01 Feb 2025
1436 points (99.0% liked)

Programmer Humor

25531 readers
2224 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
 
you are viewing a single comment's thread
view the rest of the comments
[–] nichtburningturtle@feddit.org 104 points 6 months ago (6 children)

I hate that I need to use escape characters when creating something for windows.

[–] pennomi@lemmy.world 29 points 6 months ago (4 children)

Python raw strings to the rescue!

[–] joyjoy@lemm.ee 18 points 6 months ago (2 children)

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

[–] Lichtblitz@discuss.tchncs.de 5 points 6 months ago

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

load more comments (1 replies)
load more comments (2 replies)
load more comments (3 replies)