Commit eb596af7 authored by Romain Casati's avatar Romain Casati
Browse files

Better way to call hacking builtins functions.

parent aaac7b08
......@@ -14,9 +14,7 @@ display = __kernel__.display
download =
# avoid poluting __dict__
......@@ -71,3 +71,12 @@ def hack_six():
path = Path('/lib/python3.8/site-packages/')
assert path.exists(), "If you see this, hack_six should be useless."
def hack_all():
Hack all builtins by calling all hack_* methods.
for name, method in globals().items():
if name.startswith('hack_') and name != 'hack_all':
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment