Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
Create a new connection to a single MongoDB instance at *host:port*.

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/mongo-python-driver-HEAD/test/pymongo_mocks.py   mongo-python-driver(Download)
 
        kwargs['_pool_class'] = my_partial(MockPool, self)
        MongoClient.__init__(self, *args, **kwargs)
 
    def _MongoClient__simple_command(self, sock_info, dbname, spec):

src/p/y/pymongo-2.7/test/pymongo_mocks.py   pymongo(Download)
 
        kwargs['_pool_class'] = my_partial(MockPool, self)
        MongoClient.__init__(self, *args, **kwargs)
 
    def _MongoClient__simple_command(self, sock_info, dbname, spec):