cpython/Doc/c-api
Sergey B Kirpichev 0f2fa6150b
gh-109598: make PyComplex_RealAsDouble/ImagAsDouble use __complex__ (GH-109647)
`PyComplex_RealAsDouble()`/`PyComplex_ImagAsDouble` now try to convert
an object to a `complex` instance using its `__complex__()` method
before falling back to the ``__float__()`` method.

PyComplex_ImagAsDouble() also will not silently return 0.0 for
non-complex types anymore.  Instead we try to call PyFloat_AsDouble()
and return 0.0 only if this call is successful.
2024-01-15 16:04:17 +01:00
..
abstract.rst
allocation.rst
apiabiversion.rst
arg.rst gh-65210: Add const qualifiers in PyArg_VaParseTupleAndKeywords() (GH-105958) 2023-12-04 13:14:56 +02:00
bool.rst gh-110481, doc: Add "immortal" term to the glossary (#112180) 2023-11-17 15:09:19 +01:00
buffer.rst
bytearray.rst
bytes.rst docs: specify that PyBytes_AsStringAndSize returns 0 on success (GH-110888) 2023-11-03 14:51:28 +01:00
call.rst Add a version added note for PY_VECTORCALL_ARGUMENTS_OFFSET (#110963) 2023-10-23 19:00:52 +03:00
capsule.rst
cell.rst
code.rst
codec.rst
complex.rst gh-109598: make PyComplex_RealAsDouble/ImagAsDouble use __complex__ (GH-109647) 2024-01-15 16:04:17 +01:00
concrete.rst
contextvars.rst
conversion.rst
coro.rst
datetime.rst
descriptor.rst
dict.rst gh-111262: Add PyDict_Pop() function (#112028) 2023-11-14 12:51:00 +00:00
exceptions.rst gh-101578: [doc] mention that PyErr_GetRaisedException returns NULL when the error indicator is not set (#113369) 2023-12-31 23:16:33 +00:00
file.rst
float.rst
frame.rst gh-101100: Properly document frame object attributes (#112735) 2023-12-05 19:27:59 +00:00
function.rst gh-101100: Further improve docs on function attributes (#113001) 2023-12-12 20:21:12 +00:00
gcsupport.rst
gen.rst
hash.rst gh-111545: Add Py_HashPointer() function (#112096) 2023-12-06 15:09:22 +01:00
import.rst gh-101100: Improve documentation of code object attributes (#112781) 2023-12-06 20:15:46 +00:00
index.rst
init.rst gh-101100: Properly document frame object attributes (#112735) 2023-12-05 19:27:59 +00:00
init_config.rst gh-110481, doc: Add "immortal" term to the glossary (#112180) 2023-11-17 15:09:19 +01:00
intro.rst
iter.rst
iterator.rst
list.rst gh-111138: Add PyList_Extend() and PyList_Clear() functions (#111862) 2023-11-13 16:14:56 +00:00
long.rst
mapping.rst
marshal.rst
memory.rst gh-90815: Add mimalloc memory allocator (#109914) 2023-10-30 15:43:11 +00:00
memoryview.rst
method.rst
module.rst
none.rst gh-110481, doc: Add "immortal" term to the glossary (#112180) 2023-11-17 15:09:19 +01:00
number.rst
object.rst gh-113391: fix outdated PyObject_HasAttr docs (#113420) 2024-01-08 16:23:43 +01:00
objimpl.rst
perfmaps.rst
refcounting.rst gh-110481: Fix Py_SET_REFCNT() integer overflow (#112174) 2023-12-01 15:50:16 +01:00
reflection.rst
sequence.rst
set.rst gh-101100: Fix Sphinx reference warnings (GH-112416) 2023-11-25 15:40:19 -08:00
slice.rst gh-110481, doc: Add "immortal" term to the glossary (#112180) 2023-11-17 15:09:19 +01:00
stable.rst
structures.rst Doc: c-api: fix order of PyMemberDef fields (#112879) 2023-12-11 02:43:17 +09:00
sys.rst
tuple.rst
type.rst
typehints.rst
typeobj.rst gh-111178: Docs: fix traverseproc, inquiry, and destructor parameters in slot typedefs table (GH-112742) 2023-12-06 10:44:41 +01:00
unicode.rst gh-62897: Update PyUnicode C API parameter names (GH-12680) 2023-12-05 11:21:09 +02:00
utilities.rst gh-111545: Test PyHash_GetFuncDef() function (#112098) 2023-11-15 03:41:29 +01:00
veryhigh.rst
weakref.rst