dict.popitem(key) ???

Miki Tebeka tebeka at cs.bgu.ac.il
Sun Mar 16 10:04:26 CET 2003


Hello Justin,

> Why doesn't popitem take a key argument that defaults to None?  Or how
> should I pop a particular item out of a dict?
item = mydict[key]
del mydict[key]

Miki




More information about the Python-list mailing list