this post was submitted on 17 Jan 2026
651 points (98.1% liked)

Programmer Humor

28812 readers
753 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
[–] hellfire103@lemmy.ca 36 points 1 week ago* (last edited 1 week ago) (2 children)

That happens all the time with Python. It often shows me errors in the imported modules, which are easily confused with my own code if I'm tired and don't read the message properly.

[–] eager_eagle@lemmy.world 10 points 1 week ago (2 children)

how's that the same thing as in the picture?

[–] hellfire103@lemmy.ca 8 points 1 week ago* (last edited 1 week ago) (1 children)

Here it is in greentext form:

>"error on line 42"
>look inside
>no code on line 42

mfw python throws errors about other peoples code
[–] eager_eagle@lemmy.world 2 points 1 week ago (1 children)

Python stack traces give you all files involved in the error, with their lines. I don't know what you're talking about

[–] irelephant@lemmy.dbzer0.com 9 points 1 week ago* (last edited 1 week ago)

hence the

which are easily confused with my own code if I’m tired and don’t read the message properly.

[–] CallMeAl@piefed.zip 8 points 1 week ago (1 children)

it happens all the time in bash. i write some and there's no error but everyone complains that i didn't use brainfuck

[–] diffaldo@lemmy.dbzer0.com 4 points 1 week ago

You dont like brainfuck!?😨

[–] ZoteTheMighty@lemmy.zip 4 points 1 week 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.