That's quite cool. But I'm not sure what's the use case for it.
this post was submitted on 21 Nov 2024
288 points (90.7% liked)
Programmer Humor
32561 readers
384 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
What? There is no lib
module.
$ python3.13 -c 'import lib'
Traceback (most recent call last):
File "<string>", line 1, in <module>
import lib
ModuleNotFoundError: No module named 'lib'
$
OP wrote this add() function and has provided their own lib module in the source code.
load more comments
(1 replies)
Makes sence if u think about it. We use comments as docstrings that the interpreter has an understanding of. Python lets u fuck with its internals (at least in an immutable manner) so why not fuck with comments.
TMI 😢