From: Kirill Podoprigora Date: Mon, 4 Mar 2024 17:57:01 +0000 (+0200) Subject: gh-116316: Fix typo in `UNARY_FUNC(PyNumber_Positive)` macros (GH-116317) X-Git-Tag: v3.13.0a5~118 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8a84eb75a94ead1cc0dcdde635096e58910d9356;p=thirdparty%2FPython%2Fcpython.git gh-116316: Fix typo in `UNARY_FUNC(PyNumber_Positive)` macros (GH-116317) --- diff --git a/Objects/abstract.c b/Objects/abstract.c index 07d4b89fe188..8357175aa559 100644 --- a/Objects/abstract.c +++ b/Objects/abstract.c @@ -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()")