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

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
synchronizing(self, value_object, mediator=None)

Create a context manager that will temporarily synchronize object to another
C{value_object}, optionally using C{mediator}.  Upon exit, returned context manager
desynchronizes the two objects.

@note:
This method is available only in Python 2.5 or newer.

@note:(more...)

src/p/y/py-notify-0.3.1/test/_2_5/base.py   py-notify(Download)
        variable1.changed.connect (test.simple_handler)
 
        with variable1.synchronizing (variable2):
            variable2.value = 300
 
        variable1.changed.connect (test.simple_handler)
 
        with nested (ignoring_exceptions (), variable1.synchronizing (variable2)):
            variable2.value = 300
            raise Exception