cpython/Objects/clinic
Serhiy Storchaka 207d1b032f
[3.12] gh-109218: Improve documentation for the complex() constructor (GH-119687) (ПР-119805)
* 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 ec1ba26460)
2024-05-30 20:52:44 +00:00
..
bytearrayobject.c.h
bytesobject.c.h
classobject.c.h gh-101409: Improve generated clinic code for self type checks (#101411) 2023-01-31 21:42:03 +01:00
codeobject.c.h [3.12] gh-86457: Fix signature for code.replace() (GH-23199) (#107744) 2023-08-16 14:27:32 +02:00
complexobject.c.h [3.12] gh-109218: Improve documentation for the complex() constructor (GH-119687) (ПР-119805) 2024-05-30 20:52:44 +00:00
descrobject.c.h
dictobject.c.h
enumobject.c.h gh-101409: Improve generated clinic code for self type checks (#101411) 2023-01-31 21:42:03 +01:00
floatobject.c.h gh-101825: Clarify that as_integer_ratio() output is always normalized (#101843) 2023-02-27 19:11:28 +00:00
funcobject.c.h
listobject.c.h gh-101409: Improve generated clinic code for self type checks (#101411) 2023-01-31 21:42:03 +01:00
longobject.c.h gh-101825: Clarify that as_integer_ratio() output is always normalized (#101843) 2023-02-27 19:11:28 +00:00
memoryobject.c.h gh-102500: Implement PEP 688 (#102521) 2023-05-04 07:59:46 -07:00
moduleobject.c.h
odictobject.c.h
structseq.c.h
tupleobject.c.h gh-101409: Improve generated clinic code for self type checks (#101411) 2023-01-31 21:42:03 +01:00
typeobject.c.h
typevarobject.c.h gh-103763: Implement PEP 695 (#103764) 2023-05-15 20:36:23 -07:00
unicodeobject.c.h [3.12] gh-110383: Improve accuracy of str.split() and str.rsplit() docstrings (GH-113355) (#113379) 2023-12-22 00:43:28 -07:00