(context)
Set this thread's context to context.
Set this thread's context to context.
Set this thread s context to context .
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)
def setcontext ( context ) : if context in ( DefaultContext , BasicContext , ExtendedContext ) : context = context . copy ( ) context . clear_flags ( ) _current_context_var . set ( context )