73
you are viewing a single comment's thread
view the rest of the comments
[-] JohnnyCanuck@lemmy.ca 13 points 3 days ago
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
73 points (100.0% liked)

Programmer Humor

38032 readers
146 users here now

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

Rules:

founded 6 years ago
MODERATORS