Not this one the other one, from a dictionary

Vlastimil Brom vlastimil.brom at gmail.com
Wed Sep 23 00:21:39 CEST 2009


Thanks for the elaboration;
in retrospect, given the simple requirement, that there are only two
dict keys, one of which is know and the other to be determined, maybe
just the direct dict methods are appropriate, e.g.

d = {'a': 'bob', 'b': 'stu'}
d_copy = dict(d)
d_copy.pop("a")
'bob'
d_copy.popitem()
('b', 'stu')

vbr



More information about the Python-list mailing list