Not this one the other one, from a dictionary
Vlastimil Brom
vlastimil.brom at gmail.com
Tue Sep 22 18:21:39 EDT 2009
More information about the Python-list mailing list
Tue Sep 22 18:21:39 EDT 2009
- Previous message (by thread): Not this one the other one, from a dictionary
- Next message (by thread): Not this one the other one, from a dictionary
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message (by thread): Not this one the other one, from a dictionary
- Next message (by thread): Not this one the other one, from a dictionary
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list