Skip to content

Commit 7f0692f

Browse files
committed
Add note on the rare use of the Mapping Protocol.
1 parent e3f51a6 commit 7f0692f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/sphinx/source/new_types.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1417,3 +1417,5 @@ TODOs:
14171417
"Creating New Types": Add a section on making an object act like a mapping object using
14181418
`tp_as_mapping <https://docs.python.org/3/c-api/typeobj.html#c.PyTypeObject.tp_as_mapping>`_.
14191419
See also `Mapping Object Structures <https://docs.python.org/3/c-api/typeobj.html#mapping-structs>`_
1420+
1421+
NOTE: This is rarely used in the Python stdlib, really only for dictionaries.

0 commit comments

Comments
 (0)