def threading_setup(): if _thread: return _thread._count(), threading._dangling.copy() else: return 1, ()