<div>Hello all,</div><div><br></div>Say I have a:<div><br></div><div>    class Foo(Persistent):</div><div>        def __init__(self, bar):</div><div>            self.my_dict = PersistentDict({&#39;keyis&#39;: bar})</div><div>
        def update_it(self, bar):</div><div>            self.my_dict[&#39;keyis&#39;] = bar</div><div><br></div><div>If I want to use a `dict`, instead (it seems it might be faster for my larger example), how would I cause a change to the dict to</div>
<div>be committed? Is there any way other than this?</div><div><br></div><div><div>    class Foo(Persistent):</div><div>        def __init__(self, bar):</div><div>            self.my_dict = {&#39;keyis&#39;: bar}</div><div>
        def update_it(self, bar):</div><div>            self.my_dict[&#39;keyis&#39;] = bar</div><div>            self.my_dict = dict(self.my_dict)</div><div><br></div><div>Thanks,</div><div>- Claudiu</div><div><br></div>
<br class="Apple-interchange-newline"></div>