parameters: (func)
docstring: Set a trace function for all threads started from the threading module.
  
      The func will be passed to sys.settrace() for each thread, before its run()
      method is called.
docstring_summary: Set a trace function for all threads started from the threading module.
docstring_tokens: Set a trace function for all threads started from the threading module .
function: def settrace(func):
      """Set a trace function for all threads started from the threading module.
  
      The func will be passed to sys.settrace() for each thread, before its run()
      method is called.
  
      """
      global _trace_hook
      _trace_hook = func
function_tokens: def settrace ( func ) : global _trace_hook _trace_hook = func