bpo-5945: mapping.rst: PyMapping_Check(list) returns 1 by jbarlow83 · Pull Request #144 · python/cpython

@jbarlow83 jbarlow83 changed the title mapping.rst: PyMapping_Check(list) returns 1 bpo-5945: mapping.rst: PyMapping_Check(list) returns 1

Feb 18, 2017

serhiy-storchaka

@jbarlow83

As discussed below, in Python 3, PyMapping_Check(list) returns 1. This behavior is justified by a developer as consistent with Python 3's internals. It is however surprising to C-API users (speaking from experience) and because it deviates from collections.abc.Mapping.

https://mail.python.org/pipermail/python-dev/2009-May/089445.html

Squashed a few revisions

akruis pushed a commit to akruis/cpython that referenced this pull request

Dec 20, 2017
…iew_new

Replace copied code by a limited API function. This fixes the assertion
error caused by commit 2eea952.

akruis pushed a commit to akruis/cpython that referenced this pull request

Dec 20, 2017
Stackless contributes two tests to builtins: TaskletExit and
TaskletExit.__init__. Therefore we have to adjust the limit.

Add missing changelog entries (python#143, python#144).

@jbarlow83

akruis pushed a commit to akruis/cpython that referenced this pull request

Mar 25, 2018
…iew_new

Replace copied code by a limited API function. This fixes the assertion
error caused by commit 2eea952.
(cherry picked from commit 096ad87)

akruis pushed a commit to akruis/cpython that referenced this pull request

Mar 25, 2018
Stackless contributes two tests to builtins: TaskletExit and
TaskletExit.__init__. Therefore we have to adjust the limit.

Add missing changelog entries (python#143, python#144).

(cherry picked from commit 7327e4b)

willingc

@jbarlow83

willingc