Did I find the right examples for you? yes no

All Samples(5)  |  Call(5)  |  Derive(0)  |  Import(0)
Create a new connection to a MongoDB replica set.

The resultant client object has connection-pooling built
in. It also performs auto-reconnection when necessary. If an
operation fails because of a connection error,
:class:`~pymongo.errors.ConnectionFailure` is raised. If
auto-reconnection will be performed,
:class:`~pymongo.errors.AutoReconnect` will be
raised. Application code should handle this exception
(recognizing that the operation failed) and then continue to(more...)

src/m/o/mongokit-0.9.1.1/mongokit/connection.py   mongokit(Download)
    def __init__(self, *args, **kwargs):
        # Specifying that it should run both the inits
        MongoKitConnection.__init__(self, *args, **kwargs)
        PymongoReplicaSetConnection.__init__(self, *args, **kwargs)
 

src/m/o/mongokit-py3-0.9.1.1/mongokit/connection.py   mongokit-py3(Download)
    def __init__(self, *args, **kwargs):
        # Specifying that it should run both the inits
        MongoKitConnection.__init__(self, *args, **kwargs)
        PymongoReplicaSetConnection.__init__(self, *args, **kwargs)
 

src/m/o/mongokit-HEAD/mongokit/connection.py   mongokit(Download)
    def __init__(self, *args, **kwargs):
        # Specifying that it should run both the inits
        MongoKitConnection.__init__(self, *args, **kwargs)
        PymongoReplicaSetConnection.__init__(self, *args, **kwargs)
 

src/m/o/mongo-python-driver-HEAD/test/pymongo_mocks.py   mongo-python-driver(Download)
 
        kwargs['_pool_class'] = my_partial(MockPool, self)
        MongoReplicaSetClient.__init__(self, *args, **kwargs)
 
    def _MongoReplicaSetClient__is_master(self, host):

src/p/y/pymongo-2.7/test/pymongo_mocks.py   pymongo(Download)
 
        kwargs['_pool_class'] = my_partial(MockPool, self)
        MongoReplicaSetClient.__init__(self, *args, **kwargs)
 
    def _MongoReplicaSetClient__is_master(self, host):