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
  • 115,346
  • 109
  • 446
  • 738
  • 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