A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-May/014609.html below:

[Python-Dev] non-mutating 'choose' to go with 'dict.popitem'?

[Python-Dev] non-mutating 'choose' to go with 'dict.popitem'? [Python-Dev] non-mutating 'choose' to go with 'dict.popitem'?Greg Wilson Greg.Wilson@baltimore.com
Sun, 6 May 2001 12:26:00 -0400
Has anyone else found themselves wanting a method that
chooses and returns a dictionary element at random, without
removing it (as popitem does)?  Or is there some way to
tell popitem to return a value without mutating the container?
If neither, would this be useful, or is it DHG?

Thanks
Greg




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4