Did I find the right examples for you? yes no

All Samples(47)  |  Call(0)  |  Derive(0)  |  Import(47)
Dynamic pseudo-scoping for Python.

Call functions with context.call({key: value}, func); func and
functions that it calls will be able to use 'context.get(key)' to
retrieve 'value'.

This is thread-safe.

src/h/o/hortonworks-sandbox-HEAD/desktop/core/ext-py/Twisted/twisted/python/threadpool.py   hortonworks-sandbox(Download)
 
# Twisted Imports
from twisted.python import log, runtime, context, failure
 
WorkerStop = object()

src/t/w/Twisted-13.2.0/twisted/python/log.py   Twisted(Download)
 
from twisted.python.compat import unicode, _PY3
from twisted.python import context
from twisted.python import _reflectpy3 as reflect
from twisted.python import util

src/h/o/hortonworks-sandbox-HEAD/desktop/core/ext-py/Twisted/twisted/python/log.py   hortonworks-sandbox(Download)
from zope.interface import Interface
 
from twisted.python import util, context, reflect
 
 

src/o/h/oh-mainline-HEAD/vendor/packages/twisted/twisted/python/threadpool.py   oh-mainline(Download)
 
# Twisted Imports
from twisted.python import log, context, failure
from twisted.python.deprecate import deprecatedModuleAttribute
from twisted.python.versions import Version

src/o/h/oh-mainline-HEAD/vendor/packages/twisted/twisted/python/log.py   oh-mainline(Download)
from zope.interface import Interface
 
from twisted.python import util, context, reflect
 
 

src/m/y/mythbox-HEAD/resources/lib/twisted/twisted/python/threadpool.py   mythbox(Download)
 
# Twisted Imports
from twisted.python import log, context, failure
from twisted.python.deprecate import deprecatedModuleAttribute
from twisted.python.versions import Version

src/m/y/mythbox-HEAD/resources/lib/twisted/twisted/python/log.py   mythbox(Download)
from zope.interface import Interface
 
from twisted.python import util, context, reflect
 
 

src/z/o/zope.app.twisted-3.5.0/src/twisted/python/threadpool.py   zope.app.twisted(Download)
 
# Twisted Imports
from twisted.python import log, runtime, context
class WorkerStop:
    pass

src/z/o/zope.app.twisted-3.5.0/src/twisted/python/log.py   zope.app.twisted(Download)
 
# Sibling Imports
from twisted.python import util, context, reflect
 
class ILogContext:

src/t/w/Twisted-13.2.0/twisted/python/threadpool.py   Twisted(Download)
import copy
 
from twisted.python import log, context, failure
 
 

  1 | 2 | 3 | 4 | 5  Next