From 38762b3ffbc4e5e5248c184cdcf74b7a454b399c Mon Sep 17 00:00:00 2001 From: Sergey B Kirpichev Date: Thu, 31 Oct 2024 16:15:49 +0300 Subject: [PATCH] address review: rename symbols in commentary to avoid clash with macro --- Objects/complexobject.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Objects/complexobject.c b/Objects/complexobject.c index c472f35086db1b..16d64108a6ac35 100644 --- a/Objects/complexobject.c +++ b/Objects/complexobject.c @@ -614,8 +614,8 @@ real_to_complex(PyObject **pobj, Py_complex *pc) converted to floats. We have the following rules (up to variants with changed order of operands): - complex(x, y) + complex(u, v) = complex(x + u, y + v) - float(x) + complex(u, v) = complex(x + u, v) + complex(a, b) + complex(c, d) = complex(a + c, b + d) + float(a) + complex(b, c) = complex(a + b, c) Similar rules are implemented for subtraction, multiplication and division. See C11's Annex G, sections G.5.1 and G.5.2.