def currentThread():
 try:
  return _active[_get_ident()]
 except KeyError:
  return _DummyThread()

def currentThread ( ) : try : return _active [ _get_ident ( ) ] except KeyError : return _DummyThread ( )
return the current thread object .