Skip to content
Sign upLog in

Adding GOTO statement to Python *cue eveil laughter*

HristoGueorguie
HristoGueorguie

You guys remember basic.

Just what it sounds like, a decorator that patches the bytecode of a decorated function to allow variable assignments to specific string constants to be treated as GOTO/JUMP statements and LABELS to jump to.

Just in case it needs to be said, yes this is a joke and has no actual uses, nor should anyone use it for anything real other than having fun.

Loading comments...