On 14Jun2021 09:39, BlindAnagram <blindanag...@nowhere.org> wrote: >However, d.pop(key, [default]) returns the value (or the default) and >consistency with other pops (a good thing in my view) would suggest >that d.pop() could return a random value, which would serve my purpose >when there is only one element.
If you don't care what key was popped, maybe you want a set and not a dict? Just a thought. Cheers, Cameron Simpson <c...@cskk.id.au> -- https://mail.python.org/mailman/listinfo/python-list