this post was submitted on 21 Nov 2024
283 points (90.8% liked)
Programmer Humor
32557 readers
500 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I'm going to say it just is misinformation, if that's what "lib" is here.
Yeah. 'lib' isn't a standard Python library, it's the name of the abomination that this person created. Since python has quite a bit of useful introspection, they can do something like:
abomination.add()
Now, I don't know if python keeps the comments around, so it may involve getting the filename and line number, reading the file, and manually extracting the comment text from that line.
It's not even actually called lib. The line just straight up isn't in the image "transcribed", and it's
from arglib import comment_arguments
in the original code.Yeah, I gave this one a downvote.