Skip to content

@djtriptych /clearhack.py
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
python clear hack
# saran = clear wrap. get it?
def saran(f):
def g(*args, **kwargs):
d = f(*args, **kwargs)
try:
_clear = d.pop('clear')
except KeyError:
return d
d['clear'] = _clear
return d
return g
vars = saran(vars)
locals = saran(locals)
globals = saran(globals)
del saran
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.