Did I find the right examples for you? yes no

All Samples(22)  |  Call(0)  |  Derive(0)  |  Import(22)
I define support for hookable instance methods.

These are methods which you can register pre-call and post-call external
functions to augment their functionality.  People familiar with more esoteric
languages may think of these as "method combinations".

This could be used to add optional preconditions, user-extensible callbacks
(a-la emacs) or a thread-safety mechanism.

The four exported calls are:(more...)

src/h/o/hortonworks-sandbox-HEAD/desktop/core/ext-py/Twisted/twisted/python/threadable.py   hortonworks-sandbox(Download)
import warnings
 
from twisted.python import hook
 
class DummyLock(object):

src/o/h/oh-mainline-HEAD/vendor/packages/twisted/twisted/python/threadable.py   oh-mainline(Download)
 
 
from twisted.python import hook
 
class DummyLock(object):

src/m/y/mythbox-HEAD/resources/lib/twisted/twisted/python/threadable.py   mythbox(Download)
import warnings
 
from twisted.python import hook
 
class DummyLock(object):

src/z/o/zope.app.twisted-3.5.0/src/twisted/python/threadable.py   zope.app.twisted(Download)
import warnings
 
from twisted.python import hook
 
class DummyLock(object):

src/s/u/SubliminalCollaborator-HEAD/libs/twisted/python/threadable.py   SubliminalCollaborator(Download)
 
 
from twisted.python import hook
 
class DummyLock(object):

src/u/n/UnitScan-HEAD/twisted/python/threadable.py   UnitScan(Download)
 
 
from twisted.python import hook
 
class DummyLock(object):

src/p/y/PythonForumIDE-HEAD/pythonforumide/twisted/python/threadable.py   PythonForumIDE(Download)
 
 
from twisted.python import hook
 
class DummyLock(object):

src/m/a/madcow-HEAD/madcow/include/twisted/python/threadable.py   madcow(Download)
import warnings
 
from twisted.python import hook
 
class DummyLock(object):

src/u/n/UnitScan-HEAD/twisted/test/test_import.py   UnitScan(Download)
    def test_twistedPython(self):
        """
        Test importing C{twisted.python}.
        """
        from twisted.python import hook

src/u/n/UnitScan-HEAD/twisted/test/test_hook.py   UnitScan(Download)
"""
 
from twisted.python import hook
from twisted.trial import unittest
 

  1 | 2 | 3  Next