Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(11)  |  Call(11)  |  Derive(0)  |  Import(0)

src/p/y/py-notify-0.3.1/notify/condition.py   py-notify(Download)
        if self._has_signal ():
            if watched_condition is None and condition_to_watch is not None:
                AbstractGCProtector.default.protect (self)
            elif watched_condition is not None and condition_to_watch is None:
                AbstractGCProtector.default.unprotect (self)
    def _create_signal (self):
        if self.__get_watched_condition () is not None:
            AbstractGCProtector.default.protect (self)
 
        signal = CleanSignal (self)
    def _create_signal (self):
        if self.__negated_condition () is not None:
            AbstractGCProtector.default.protect (self)
 
        signal = CleanSignal (self)
    def _create_signal (self):
        if (   isinstance (self.__condition1, weakref.ReferenceType)
            or isinstance (self.__condition2, weakref.ReferenceType)):
            AbstractGCProtector.default.protect (self)
 
    def _create_signal (self):
        if (   isinstance (self.__if,   weakref.ReferenceType)
            or isinstance (self.__then, weakref.ReferenceType)
            or isinstance (self.__else, weakref.ReferenceType)):
            AbstractGCProtector.default.protect (self)

src/p/y/py-notify-0.3.1/notify/variable.py   py-notify(Download)
        if self._has_signal ():
            if watched_variable is None and variable_to_watch is not None:
                AbstractGCProtector.default.protect (self)
            elif watched_variable is not None and variable_to_watch is None:
                AbstractGCProtector.default.unprotect (self)
    def _create_signal (self):
        if self.__get_watched_variable () is not None:
            AbstractGCProtector.default.protect (self)
 
        signal = CleanSignal (self)
    def _create_signal (self):
        if self.__variable () is not None:
            AbstractGCProtector.default.protect (self)
 
        signal = CleanSignal (self)
    def _create_signal (self):
        if self.__variable () is not None:
            AbstractGCProtector.default.protect (self)
 
        signal = CleanSignal (self)

src/p/y/py-notify-0.3.1/notify/signal.py   py-notify(Download)
    def do_connect (self, handler):
        if self._handlers is None and self.__parent is not None:
            AbstractGCProtector.default.protect (self)
 
        super (CleanSignal, self).do_connect (handler)

src/p/y/py-notify-0.3.1/test/_gc.py   py-notify(Download)
 
        # When current default protector is in use, it cannot be replaced.
        AbstractGCProtector.default.protect (42)
        self.assertRaises (ValueError, create_assigner (FastGCProtector ()))
        AbstractGCProtector.default.unprotect (42)