summaryrefslogtreecommitdiffstats
path: root/Objects/object_layout.md
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2024-07-15 16:07:00 (GMT)
committerGitHub <noreply@github.com>2024-07-15 16:07:00 (GMT)
commit94bee45dee41876e88fe023b9163178d376355dc (patch)
treeedbd2ba0cf02984c04d7691fbdb54857652d0840 /Objects/object_layout.md
parent8303d32ff55945c5b38eeeaf1b1811dbcf8aa9be (diff)
downloadcpython-94bee45dee41876e88fe023b9163178d376355dc.zip
cpython-94bee45dee41876e88fe023b9163178d376355dc.tar.gz
cpython-94bee45dee41876e88fe023b9163178d376355dc.tar.bz2
gh-84978: Add float.from_number() and complex.from_number() (GH-26827)
They are alternate constructors which only accept numbers (including objects with special methods __float__, __complex__ and __index__), but not strings.
Diffstat (limited to 'Objects/object_layout.md')
0 files changed, 0 insertions, 0 deletions