Skip to content

Commit

Permalink
address review: rename symbols in commentary to avoid clash with macro
Browse files Browse the repository at this point in the history
  • Loading branch information
skirpichev committed Oct 31, 2024
1 parent 3ef5287 commit 38762b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Objects/complexobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 38762b3

Please sign in to comment.