From e6225f4a5b02b5ca81cc5cefd222267a9f98eeed Mon Sep 17 00:00:00 2001 From: Sergey B Kirpichev Date: Thu, 25 Jul 2024 09:28:39 +0300 Subject: [PATCH] gh-122193: simplify object.__rpow__() signature (no modulo) Docs says: "Note that ternary pow() will not try calling __rpow__() (the coercion rules would become too complicated)." Probably, this is not something, that might be changed (see recent discussion in https://discuss.python.org/t/35185). Lets simplify signature of this dunder method. --- Doc/reference/datamodel.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst index 144c6f78ccd443..899745032bbdf0 100644 --- a/Doc/reference/datamodel.rst +++ b/Doc/reference/datamodel.rst @@ -3013,7 +3013,7 @@ left undefined. object.__rfloordiv__(self, other) object.__rmod__(self, other) object.__rdivmod__(self, other) - object.__rpow__(self, other[, modulo]) + object.__rpow__(self, other) object.__rlshift__(self, other) object.__rrshift__(self, other) object.__rand__(self, other)