Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Doc/c-api/dict.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ Dictionary objects
Empty an existing dictionary of all key-value pairs.
Do nothing if the argument is not a :class:`dict` or a :class:`!dict`
subclass.
.. c:function:: int PyDict_Contains(PyObject *p, PyObject *key)
Expand Down
12 changes: 12 additions & 0 deletions Doc/library/unicodedata.rst
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,18 @@ following functions:
`Unicode Standard Annex #11 <https://www.unicode.org/reports/tr11/>`_.


.. function:: block(chr, /)

Returns the `block
<https://www.unicode.org/versions/Unicode17.0.0/core-spec/chapter-3/#G64189>`_
assigned to the character *chr*. For example::

>>> unicodedata.block('S')
'Basic Latin'

.. versionadded:: next


.. function:: mirrored(chr, /)

Returns the mirrored property assigned to the character *chr* as
Expand Down
5 changes: 5 additions & 0 deletions Doc/whatsnew/3.15.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1134,6 +1134,11 @@ unicodedata
of the character which are related to the above algorithm.
(Contributed by Serhiy Storchaka and Guillaume Sanchez in :gh:`74902`.)

* Add :func:`~unicodedata.block` function to return the `Unicode block
<https://www.unicode.org/versions/Unicode17.0.0/core-spec/chapter-3/#G64189>`_
assigned to a character.
(Contributed by Stan Ulbrych in :gh:`66802`.)


unittest
--------
Expand Down
Loading
Loading