mirror of
https://github.com/python/cpython
synced 2026-09-29 04:20:29 +03:00
`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. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| __main__.py | ||
| check_config.py | ||
| test_abstract.py | ||
| test_bytearray.py | ||
| test_bytes.py | ||
| test_codecs.py | ||
| test_complex.py | ||
| test_dict.py | ||
| test_eval_code_ex.py | ||
| test_exceptions.py | ||
| test_float.py | ||
| test_getargs.py | ||
| test_hash.py | ||
| test_immortal.py | ||
| test_list.py | ||
| test_long.py | ||
| test_mem.py | ||
| test_misc.py | ||
| test_opt.py | ||
| test_pyatomic.py | ||
| test_set.py | ||
| test_structmembers.py | ||
| test_sys.py | ||
| test_unicode.py | ||
| test_watchers.py | ||