Re: Get dict value but not as reference.
On Wed, Jul 23, 2008 at 11:49 AM, Robert Rawlins [EMAIL PROTECTED] wrote: I have a dictionary, and I want to get one of the values from it, but rather than returning it as a reference I want to actually detach/remove the element from the dictionary. Like so: Use the pop() method of the
RE: Get dict value but not as reference.
Use the pop() method of the dictionary, like this: Ah, of course! Pop! I have seen this before I think Jerry, seems to do the trick nicely. Thank you. Robert -- http://mail.python.org/mailman/listinfo/python-list