https://github.com/python/cpython/commit/8a84eb75a94ead1cc0dcdde635096e58910d9356
commit: 8a84eb75a94ead1cc0dcdde635096e58910d9356
branch: main
author: Kirill Podoprigora <[email protected]>
committer: serhiy-storchaka <[email protected]>
date: 2024-03-04T17:57:01Z
summary:

gh-116316: Fix typo in `UNARY_FUNC(PyNumber_Positive)` macros (GH-116317)

files:
M Objects/abstract.c

diff --git a/Objects/abstract.c b/Objects/abstract.c
index 07d4b89fe188c8..8357175aa5591e 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()")
 

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to