import inspect, builtins
def HelloWorld(funcname):
caller = inspect.currentframe().f_code.co_name
getattr(builtins, funcname)(caller)
HelloWorld("print")
this post was submitted on 28 Aug 2025
70 points (90.7% liked)
Programmer Humor
38016 readers
178 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 6 years ago
MODERATORS
It took my brain way longer than I want to admit to figure out, what is wrong with that line... I gues my brain just autocorrected it for me without me even knowing.