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 serhiy.storchaka
Recipients ezio.melotti, r.david.murray, sam-s, serhiy.storchaka, vstinner
Date 2017-09-09.19:46:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1504986399.43.0.749710331899.issue31398@psf.upfronthosting.co.za>
In-reply-to
Content
has_key(u"x") works if x is a valid key.

has_key() parses the argument with PyArg_ParseTuple("s#") which implicitly converts unicode to str. __contains__() explicitly checks for str type.
History
Date User Action Args
2017-09-09 19:46:39serhiy.storchakasetrecipients: + serhiy.storchaka, vstinner, ezio.melotti, r.david.murray, sam-s
2017-09-09 19:46:39serhiy.storchakasetmessageid: <1504986399.43.0.749710331899.issue31398@psf.upfronthosting.co.za>
2017-09-09 19:46:39serhiy.storchakalinkissue31398 messages
2017-09-09 19:46:39serhiy.storchakacreate