<div dir="ltr">My bad, seems is explained here:<div><br></div><div><a href="http://riak-python-client.readthedocs.org/en/master/datatypes.html">http://riak-python-client.readthedocs.org/en/master/datatypes.html</a><br></div><div><br></div><div>By the way, what's the difference between these calls?</div><div>







<p class=""><span class=""><b>.</b></span><span class="">registers</span><span class="">[</span><span class="">'user'</span><span class="">]<b>.</b></span><span class="">assign</span><span class="">(</span><span class="">"alex"</span><span class="">)<br><span class=""><b>.</b></span><span class="">registers</span><span class="">[</span><span class="">'user'</span><span class="">]<b>.</b></span><span class="">set</span><span class="">(</span><span class="">"alex"</span><span class="">)<br></span><span class=""><b>.</b></span><span class="">registers</span><span class="">[</span><span class="">'user'</span><span class="">]<b>.</b></span><span class="">set_value</span><span class="">(</span><span class="">"alex"</span><span class="">)</span></span></p><p class=""><span class=""><span class="">Thanks,<br>Alex</span></span></p></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 19, 2014 at 4:31 PM, Alex De la rosa <span dir="ltr"><<a href="mailto:alex.rosa.box@gmail.com" target="_blank">alex.rosa.box@gmail.com</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Cool! good to know :) I think is not explained anywhere in the docs.<div><br></div><div>Thanks!<span class="HOEnZb"><font color="#888888"><br>Alex</font></span></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 19, 2014 at 3:50 PM, Sean Cribbs <span dir="ltr"><<a href="mailto:sean@basho.com" target="_blank">sean@basho.com</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Alex,<div><br></div><div>This will remove the register from the map:</div><div><br></div><div>del obj.registers['something']</div><div>obj.store()</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Fri, Dec 19, 2014 at 5:37 AM, Alex De la rosa <span dir="ltr"><<a href="mailto:alex.rosa.box@gmail.com" target="_blank">alex.rosa.box@gmail.com</a>></span> wrote:</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">Hi there,<div><br></div><div>This is a pretty dumb question but I think I have never recalled doing it before. Imagine that I have a register called "something" with a value:</div><div><br></div><div>obj.registers['something'].assign('blah')</div><div><br></div><div>If later on I want to remove this "something" register from the riak map object, how to do it? I don't seem to find anywhere in the documentation how to remove a register.</div><div><br></div><div>I could set up an empty string: obj.registers['something'].assign(''), as I see that when you fetch a register that doesn't exist it returns an empty string instead of a None. Is this the only way? Or can we remove it in some other way?</div><div><br></div><div>Thanks,</div><div>Alex</div></div>
<br></div></div>_______________________________________________<br>
riak-users mailing list<br>
<a href="mailto:riak-users@lists.basho.com" target="_blank">riak-users@lists.basho.com</a><br>
<a href="http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com" target="_blank">http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com</a><br>
<br></blockquote></div><span><font color="#888888"><br clear="all"><div><br></div>-- <br><div>Sean Cribbs <<a href="mailto:sean@basho.com" target="_blank">sean@basho.com</a>><br>Sr. Software Engineer<br>Basho Technologies, Inc.<br><a href="http://basho.com/" target="_blank">http://basho.com/</a></div>
</font></span></div>
</blockquote></div></div>
</div></div></blockquote></div></div>