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.

classification
Title: Is ``o[key]`` equivalent to PyMapping_HasKeyString?
Type: Stage:
Components: Documentation Versions: Python 3.1, Python 3.2, Python 2.7, Python 2.6
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, methane
Priority: normal Keywords:

Created on 2010-11-29 16:18 by methane, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg122824 - (view) Author: Inada Naoki (methane) * (Python committer) Date: 2010-11-29 16:18
http://docs.python.org/c-api/mapping.html#PyMapping_HasKeyString
and
http://docs.python.org/c-api/mapping.html#PyMapping_HasKey
says:
> This is equivalent to ``o[key]``

I think it should be ``key in o``.
msg122825 - (view) Author: Inada Naoki (methane) * (Python committer) Date: 2010-11-29 16:22
I'm sorry, I've misreaded.
History
Date User Action Args
2022-04-11 14:57:09adminsetgithub: 54788
2010-11-29 16:22:40methanesetstatus: open -> closed
resolution: not a bug
messages: + msg122825
2010-11-29 16:18:36methanecreate