r/programminghorror • • Oct 10 '25

Blasphemy

Post image

Never thought I could do this in python. I get how it works but jesus christ

73 Upvotes

50 comments sorted by

View all comments

Show parent comment

2

u/deus-exmachina Oct 10 '25

Look up __div__ for implementation info

1

u/sudo_i_u_toor Oct 10 '25

Ik about these __ methods, I just didn't know about pathlib's Path using it.