2

Is there something like a session time out in python in between lines of code or in between calling a function? Something like this:

threshold = 20
def afunction(input):
  start_session
  try:
    do_something...
    return x
  except SessionTimeOut:
    return y
alvas
  • 105,505
  • 99
  • 405
  • 683
  • 2
    a possible [dup](http://stackoverflow.com/questions/492519/timeout-on-a-python-function-call/494273) – shx2 Apr 07 '13 at 21:08

0 Answers0