this post was submitted on 28 Aug 2025
76 points (91.3% liked)

Programmer Humor

38058 readers
164 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 6 years ago
MODERATORS
 
top 3 comments
sorted by: hot top controversial new old
[–] JohnnyCanuck@lemmy.ca 16 points 4 days ago
import inspect, builtins

def HelloWorld(funcname):
    caller = inspect.currentframe().f_code.co_name
    getattr(builtins, funcname)(caller)

HelloWorld("print")
[–] TDCN@feddit.dk 11 points 4 days ago

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.

[–] strung6387@lemmy.ml 2 points 4 days ago* (last edited 4 days ago)