Python client and allow_mult

Eric Moritz eric at
Fri Apr 1 13:08:46 EDT 2011

Does anyone have a standard pattern for working with allow_mult with
the Python library?  I feels a bit awkward to me.  I assume I need to
do the following:

data = {"foo": "bar"}
obj = bucket.get("mykey")

if not obj.exists():
      obj ="mykey", data=data)
   if obj.has_siblings():
       # do conflict resolution

Is the the way to do it?  If so, that seems like a lot of boiler plating to me.


More information about the riak-users mailing list