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 ethan.furman
Recipients barry, ethan.furman
Date 2013-07-20.01:27:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1374283637.16.0.636388101204.issue18510@psf.upfronthosting.co.za>
In-reply-to
Content
Commenting further:

    some_key in dict

is conceptually the same as 

    some_key in dict.keys()

which /would/ return False for an unhashable key -- at least it did in 2.x; for 3.x you have to say

    some_key in list(dict.keys())

which seems like a step backwards.

Is it worth changing __contains__ and keys() to be in line with equality?
History
Date User Action Args
2013-07-20 01:27:17ethan.furmansetrecipients: + ethan.furman, barry
2013-07-20 01:27:17ethan.furmansetmessageid: <1374283637.16.0.636388101204.issue18510@psf.upfronthosting.co.za>
2013-07-20 01:27:17ethan.furmanlinkissue18510 messages
2013-07-20 01:27:16ethan.furmancreate