mudkip@lemdro.id to Programmer Humor@lemmy.mlEnglish · 2 days agoProgrammer memelemmy.mlimagemessage-square3fedilinkarrow-up183arrow-down18
arrow-up175arrow-down1imageProgrammer memelemmy.mlmudkip@lemdro.id to Programmer Humor@lemmy.mlEnglish · 2 days agomessage-square3fedilink
minus-squareJohnnyCanuck@lemmy.calinkfedilinkarrow-up15·2 days agoimport inspect, builtins def HelloWorld(funcname): caller = inspect.currentframe().f_code.co_name getattr(builtins, funcname)(caller) HelloWorld("print")
import inspect, builtins def HelloWorld(funcname): caller = inspect.currentframe().f_code.co_name getattr(builtins, funcname)(caller) HelloWorld("print")