652
wait what... (lemmy.nz)
you are viewing a single comment's thread
view the rest of the comments
[-] ZoteTheMighty@lemmy.zip 4 points 7 months ago

It can also happen in Python if you edit the file after runtime. It parses the code on import, but re-reads the file as text during the error message, so if you added or deleted lines, the error report can report a dubious line.

this post was submitted on 17 Jan 2026
652 points (98.2% liked)

Programmer Humor

33049 readers
611 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 3 years ago
MODERATORS