SIGN IN SIGN UP

gh-109218: Improve documentation for the complex() constructor (GH-119687)

* Remove the equivalence with real+imag*1j which can be incorrect in corner
  cases (non-finite numbers, the sign of zeroes).
* Separately document the three roles of the constructor: parsing a string,
  converting a number, and constructing a complex from components.
* Document positional-only parameters of complex(), float(), int() and bool()
  as positional-only.
* Add examples for complex() and int().
* Specify the grammar of the string for complex().
* Improve the grammar of the string for float().
* Describe more explicitly the behavior when real and/or imag arguments are
  complex numbers. (This will be deprecated in future.)
S
Serhiy Storchaka committed
ec1ba264607b2b7b98d2602f5536a1d02981efc6
Parent: 1c04c63
Committed by GitHub <noreply@github.com> on 5/30/2024, 8:20:07 PM