Skip to content

Instantly share code, notes, and snippets.

@schmohlio
Created May 25, 2014 01:53
Show Gist options
  • Save schmohlio/84aa95b7335409ad2c46 to your computer and use it in GitHub Desktop.
Save schmohlio/84aa95b7335409ad2c46 to your computer and use it in GitHub Desktop.
test EmbeddedFunctionHandler part 2
EmbeddedFunctionHandler.init_log('file.log', logging.DEBUG)
MAX_ERRORS = 2
@EmbeddedFunctionHandler("catch errors adding 1", MAX_ERRORS)
def add_one2(x):
return x+1
%timeit map(add_one2,l)
# 1 loops, best of 3: 1.13 s per loop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment