Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Update run_with_timeout docstring

  • Loading branch information...
commit 2aee92e68019c5a9b530ea008883eb23b062028f 1 parent a7852f1
@asmeurer asmeurer authored
Showing with 2 additions and 1 deletion.
  1. +2 −1 
3 
@@ -53,7 +53,8 @@ def run_with_timeout(code, time, globals=None):
Evaluate ``code``, timing out after ``time`` seconds.
- ``time`` must be an integer. The return value is whatever ``code`` returns.
+ In Python 2.5 and lower, ``time`` is rounded up to the nearest integer.
+ The return value is whatever ``code`` returns.
# Set the signal handler and a ``time``-second alarm
signal.signal(signal.SIGALRM, lambda s, f: timeout(s, f, time))

0 comments on commit 2aee92e

Please sign in to comment.
Something went wrong with that request. Please try again.