[Python-ideas] Allow deleting slice in an OrderedDict
Ram Rachum
ram.rachum at gmail.com
Tue Dec 25 14:56:45 CET 2012
When I have an OrderedDict, I want to be able to delete a slice of it. I
want to be able to do:
del ordered_dict[:3]
To delete the first 3 items, like I would do in a list.
Is there any reason why this shouldn't be implemented?
Thanks,
Ram.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20121225/df6db1fc/attachment.html>
More information about the Python-ideas
mailing list