(original) (raw)

Does it matter whether the dict order after pop/delete is explicitly specified, or just specified that it's deterministic?

On 7 November 2017 at 11:28, Antoine Pitrou <solipsis@pitrou.net> wrote:
On Wed, 8 Nov 2017 06:19:46 +1100
Chris Angelico <rosuav@gmail.com> wrote:
\>
\> I've used a good few dictionary objects in my time, but most of them
\> have literally never had any items deleted from them.

Well... It really depends what kind of problem you're solving. I
certainly delete or pop items from dicts quite often.

Let's not claim that deleting items from a dict is a rare or advanced
feature. It is not.

Regards

Antoine.


\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: https://mail.python.org/mailman/options/python-dev/pludemann%40google.com