]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-116316: Fix typo in `UNARY_FUNC(PyNumber_Positive)` macros (GH-116317)
authorKirill Podoprigora <kirill.bast9@mail.ru>
Mon, 4 Mar 2024 17:57:01 +0000 (19:57 +0200)
committerGitHub <noreply@github.com>
Mon, 4 Mar 2024 17:57:01 +0000 (17:57 +0000)
Objects/abstract.c

index 07d4b89fe188c8450595a4183e41427e03af8aad..8357175aa5591ea2e7f8459723d57b05fb8f4a44 100644 (file)
@@ -1390,7 +1390,7 @@ _PyNumber_InPlacePowerNoMod(PyObject *lhs, PyObject *rhs)
     }
 
 UNARY_FUNC(PyNumber_Negative, nb_negative, __neg__, "unary -")
-UNARY_FUNC(PyNumber_Positive, nb_positive, __pow__, "unary +")
+UNARY_FUNC(PyNumber_Positive, nb_positive, __pos__, "unary +")
 UNARY_FUNC(PyNumber_Invert, nb_invert, __invert__, "unary ~")
 UNARY_FUNC(PyNumber_Absolute, nb_absolute, __abs__, "abs()")