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.
S
Serhiy Storchaka committed
94bee45dee41876e88fe023b9163178d376355dc
Parent: 8303d32
Committed by GitHub <noreply@github.com>
on 7/15/2024, 4:07:00 PM