mirror of https://github.com/python/cpython
844b535c51
* 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
|
||
---|---|---|
.. | ||
bytearrayobject.c.h | ||
bytesobject.c.h | ||
classobject.c.h | ||
codeobject.c.h | ||
complexobject.c.h | ||
descrobject.c.h | ||
dictobject.c.h | ||
enumobject.c.h | ||
floatobject.c.h | ||
funcobject.c.h | ||
listobject.c.h | ||
longobject.c.h | ||
memoryobject.c.h | ||
moduleobject.c.h | ||
odictobject.c.h | ||
setobject.c.h | ||
structseq.c.h | ||
tupleobject.c.h | ||
typeobject.c.h | ||
typevarobject.c.h | ||
unicodeobject.c.h |