Created
October 5, 2015 16:01
-
-
Save marcusway/d6eaf688260801daa3ff to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from time import sleep | |
import __builtin__ | |
VISCOSITY = 0.5 | |
def stickify(fn, *args, **kwargs): | |
def sticky_fn(*args, **kwargs): | |
sleep(VISCOSITY) | |
return fn(*args, **kwargs) | |
return sticky_fn | |
for k, v in __builtin__.__dict__.iteritems(): | |
__builtin__.__dict__[k] = stickify(v) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment