

def __init__(self, *args, **kwargs):
    '\n        This class inherits from :class:`RawBucket`.\n        In addition to the connection methods, this class\' data access methods\n        return :class:`Deferreds` instead of :class:`AsyncResult` objects.\n\n        Operations such as :meth:`get` or :meth:`set` will invoke the\n        :attr:`Deferred.callback` with the result object when the result is\n        complete, or they will invoke the :attr:`Deferred.errback` with an\n        exception (or :class:`Failure`) in case of an error. The rules of the\n        :attr:`~couchbase.connection.Connection.quiet` attribute for raising\n        exceptions apply to the invocation of the ``errback``. This means that\n        in the case where the synchronous client would raise an exception,\n        the Deferred API will have its ``errback`` invoked. Otherwise, the\n        result\'s :attr:`~couchbase.result.Result.success` field should be\n        inspected.\n\n\n        Likewise multi operations will be invoked with a\n        :class:`~couchbase.result.MultiResult` compatible object.\n\n        Some examples:\n\n        Using single items::\n\n          d_set = cb.upsert("foo", "bar")\n          d_get = cb.get("foo")\n\n          def on_err_common(*args):\n              print("Got an error: {0}".format(args)),\n          def on_set_ok(res):\n              print("Successfuly set key with CAS {0}".format(res.cas))\n          def on_get_ok(res):\n              print("Successfuly got key with value {0}".format(res.value))\n\n          d_set.addCallback(on_set_ok).addErrback(on_err_common)\n          d_get.addCallback(on_get_ok).addErrback(on_get_common)\n\n          # Note that it is safe to do this as operations performed on the\n          # same key are *always* performed in the order they were scheduled.\n\n        Using multiple items::\n\n          d_get = cb.get_multi(("Foo", "bar", "baz))\n          def on_mres(mres):\n              for k, v in mres.items():\n                  print("Got result for key {0}: {1}".format(k, v.value))\n          d.addCallback(mres)\n\n        '
    super(Bucket, args).__init__(*args, **kwargs)

dataset/ETHPy150Open couchbase/couchbase-python-client/txcouchbase/bucket.py Bucket.__init__/VarMisuse@22/766 `self`->`args`