summaryrefslogtreecommitdiffstats
path: root/Python/getargs.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2024-05-30 20:44:20 (GMT)
committerGitHub <noreply@github.com>2024-05-30 20:44:20 (GMT)
commit844b535c51201a176865cea059533bf13a3826e2 (patch)
treeb824eeedd92f7f8bda5b2fd15789acbeff2ee49b /Python/getargs.c
parentd6bede815dd88adb9a89eda15c01573fd03af080 (diff)
downloadcpython-844b535c51201a176865cea059533bf13a3826e2.zip
cpython-844b535c51201a176865cea059533bf13a3826e2.tar.gz
cpython-844b535c51201a176865cea059533bf13a3826e2.tar.bz2
[3.13] gh-109218: Improve documentation for the complex() constructor (GH-119687) (GH-119803)
* 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.) (cherry picked from commit ec1ba264607b2b7b98d2602f5536a1d02981efc6) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Python/getargs.c')
0 files changed, 0 insertions, 0 deletions