> 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
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 dic
Guys,
This feels like a strange question but it's not something I've done before,
I'm sure it's quite simple.
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