This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ThiefMaster
Recipients ThiefMaster
Date 2015-01-28.10:59:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1422442787.53.0.167316115622.issue23339@psf.upfronthosting.co.za>
In-reply-to
Content
>>> d = {'1': '2'}
>>> {'1'} < d.keys()
False
>>> {'1'} < set(d.values())
False
>>> {'1'} < d.values()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: unorderable types: set() < dict_values()


Same for e.g. the `-` operator.

Since dict_keys acts like a real set I think dict_values should do so, too. At least if all the values are hashable.
History
Date User Action Args
2015-01-28 10:59:47ThiefMastersetrecipients: + ThiefMaster
2015-01-28 10:59:47ThiefMastersetmessageid: <1422442787.53.0.167316115622.issue23339@psf.upfronthosting.co.za>
2015-01-28 10:59:47ThiefMasterlinkissue23339 messages
2015-01-28 10:59:47ThiefMastercreate