parameters: (context)
docstring: Set this thread's context to context.
docstring_summary: Set this thread's context to context.
docstring_tokens: Set this thread s context to context .
function: def setcontext(context):
      """Set this thread's context to context."""
      if context in (DefaultContext, BasicContext, ExtendedContext):
          context = context.copy()
          context.clear_flags()
      _current_context_var.set(context)
function_tokens: def setcontext ( context ) : if context in ( DefaultContext , BasicContext , ExtendedContext ) : context = context . copy ( ) context . clear_flags ( ) _current_context_var . set ( context )