Skip to content

Commit 6c18a9e

Browse files
committed
Fix NEWS entry Sphinx references
Use inline code markup instead of :func: and :meth: roles for partial.__repr__ and __setstate__ to avoid Sphinx reference resolution failures in the docs CI.
1 parent 7e73c5d commit 6c18a9e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
Fix a heap-buffer-overflow in :func:`functools.partial.__repr__` where a
1+
Fix a heap-buffer-overflow in :func:`functools.partial` ``__repr__`` where a
22
user-defined :meth:`~object.__repr__` on an argument could mutate the
3-
:class:`~functools.partial` object via :meth:`~functools.partial.__setstate__`,
4-
freeing the args tuple while iteration was still in progress. The fix holds
5-
strong references to the ``args`` tuple, ``kw`` dict, and ``fn`` callable
6-
during formatting.
3+
:class:`~functools.partial` object via ``__setstate__()``, freeing the args
4+
tuple while iteration was still in progress. The fix holds strong references
5+
to the ``args`` tuple, ``kw`` dict, and ``fn`` callable during formatting.

0 commit comments

Comments
 (0)