<div>Hi,</div>
<div>&nbsp;</div>
<div>Another stumped beginner here.</div>
<div>&nbsp;</div>
<div>I'm trying to have functions to create, edit and store dictionaries within a class. What&nbsp;I can't figure out is how to retain the edits after making them. I think it has something to do with namespace. Ideally I'd like to pickle class instances and be able to access each instance's unique dictionaries through a 
classInst.dict arrangement. I don't know why I can't figure&nbsp;out how to make the dictionary an attribute of the class, or if that's even possible.&nbsp;Does the dict have to be a separate pickled file?</div>
<div>&nbsp;</div>
<div>I've tried setting the dict in these namespaces:</div>
<div>&nbsp;</div>
<div>class N:</div>
<div>&nbsp;&nbsp;&nbsp; dict = {}</div>
<div>&nbsp;</div>
<div>class N:</div>
<div>&nbsp;&nbsp;&nbsp; def func(self):</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dict = {}</div>
<div>&nbsp;</div>
<div>but neither of these is working for me. If I make the dict global, then all class instances could edit it, which is not what I'm shooting for either. I'm out of ideas, and I sense that there is something basic that I either don't know or am overlooking.
</div>
<div>&nbsp;</div>
<div>Thanks in advance.</div>
<div>&nbsp;</div>
<div>Luke</div>