Skip to content

Commit c1eb063

Browse files
skirpichevpicnixz
andauthored
Apply suggestions from code review
Co-authored-by: Bénédikt Tran <[email protected]>
1 parent 2bfdc0a commit c1eb063

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Doc/whatsnew/3.15.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ math
109109
----
110110

111111
* Provide C99 Annex F return values for :mod:`math`'s functions as the
112-
"value" attribute of the ValueError exception object.
112+
``value`` attribute of the :exc:`ValueError` exception object.
113113
(Contributed by Sergey B Kirpichev in :gh:`133895`.)
114114

115115

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Provide C99 Annex F return values for :mod:`math`'s functions as the "value"
2-
attribute of the ValueError exception object. Patch by Sergey B Kirpichev.
1+
Provide C99 Annex F return values for :mod:`math`'s functions as the ``value``
2+
attribute of the :exc:`ValueError` exception object. Patch by Sergey B Kirpichev.

Modules/mathmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,7 @@ set_exc_value(double x)
849849
if (value) {
850850
PyObject_SetAttrString(exc, "value", value);
851851
}
852-
Py_DECREF(value);
852+
Py_XDECREF(value);
853853
PyErr_SetRaisedException(exc);
854854
}
855855

0 commit comments

Comments
 (0)