this post was submitted on 17 Jan 2026
530 points (98.4% liked)

Programmer Humor

31422 readers
991 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 28 points 3 months ago* (last edited 3 months 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 6 points 3 months ago (2 children)

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

[–] hellfire103@lemmy.ca 10 points 3 months ago* (last edited 3 months 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 0 points 3 months 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 7 points 3 months ago* (last edited 3 months 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 6 points 3 months 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 2 points 3 months ago

You dont like brainfuck!?😨

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