mudkip@lemdro.id to Programmer Humor@lemmy.mlEnglish · 3 days agoProgrammer memelemmy.mlimagemessage-square3fedilinkarrow-up177arrow-down19
arrow-up168arrow-down1imageProgrammer memelemmy.mlmudkip@lemdro.id to Programmer Humor@lemmy.mlEnglish · 3 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")