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

All Samples(4)  |  Call(3)  |  Derive(0)  |  Import(1)
Trap CTRL-C, set a flag, and keep going.  This is very useful for
gracefully exiting database loops while simulating transactions.

To use this, make an instance and then enable it.  You can check
whether a break was trapped using the trapped property.

# Create and enable a break handler.
ih = BreakHandler()
ih.enable()
for x in big_set:(more...)

src/b/o/bombardier_cli-1.10-783/lib/CnmConnector.py   bombardier_cli(Download)
    def __init__(self, address, username):
        '''
        address -- URL of the Bombardier web server
        username -- username for connecting to the server'''
        self.break_handler = BreakHandler.BreakHandler()