Skip to content

Commit 3d08f46

Browse files
vstinnerhugovk
andauthored
Apply suggestions from code review
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
1 parent e845b2b commit 3d08f46

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

Doc/c-api/dict.rst

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ Dictionary View Objects
490490
always succeeds.
491491
492492
493-
Frozen Dictionary Objects
493+
Frozen dictionary objects
494494
^^^^^^^^^^^^^^^^^^^^^^^^^
495495
496496
.. versionadded:: next
@@ -505,41 +505,43 @@ Frozen Dictionary Objects
505505
506506
.. c:function:: int PyAnyDict_Check(PyObject *p)
507507
508-
Return true if *p* is a dict object, a frozendict object, or an instance of
509-
a subtype of the dict or frozendict type.
508+
Return true if *p* is a :class:`dict` object, a :class:`frozendict` object,
509+
or an instance of a subtype of the :class:`!dict` or :class:`!frozendict`
510+
type.
510511
This function always succeeds.
511512
512513
513514
.. c:function:: int PyAnyDict_CheckExact(PyObject *p)
514515
515-
Return true if *p* is a dict object or a frozendict object, but not an
516-
instance of a subtype of the dict or frozendict type.
516+
Return true if *p* is a :class:`dict` object or a :class:`frozendict` object,
517+
but not an instance of a subtype of the :class:`!dict` or
518+
:class:`!frozendict` type.
517519
This function always succeeds.
518520
519521
520522
.. c:function:: int PyFrozenDict_Check(PyObject *p)
521523
522-
Return true if *p* is a frozendict object or an instance of a subtype of the
523-
frozendict type.
524+
Return true if *p* is a :class:`frozendict` object or an instance of a
525+
subtype of the :class:`!frozendict` type.
524526
This function always succeeds.
525527
526528
527529
.. c:function:: int PyFrozenDict_CheckExact(PyObject *p)
528530
529-
Return true if *p* is a frozendict object, but not an instance of a subtype
530-
of the frozendict type.
531+
Return true if *p* is a :class:`frozendict` object, but not an instance of a
532+
subtype of the :class:`!frozendict` type.
531533
This function always succeeds.
532534
533535
534536
.. c:function:: PyObject* PyFrozenDict_New(PyObject *iterable)
535537
536-
Return a new frozendict from an iterable, or ``NULL`` on failure with an
537-
exception set.
538+
Return a new :class:`frozendict` from an iterable, or ``NULL`` on failure
539+
with an exception set.
538540
539541
Create an empty dictionary if *iterable* is ``NULL``.
540542
541543
542-
Ordered Dictionaries
544+
Ordered dictionaries
543545
^^^^^^^^^^^^^^^^^^^^
544546
545547
Python's C API provides interface for :class:`collections.OrderedDict` from C.

0 commit comments

Comments
 (0)