14 Oct
2021
14 Oct
'21
1:50 p.m.
14.10.21 12:24, Eryk Sun пише:
Maybe an alternate constructor could be added -- such as int.from_number() -- which would be restricted to calling __int__(), __index__(), and __trunc__().
See thread "More alternate constructors for builtin type" on Python-ideas: https://mail.python.org/archives/list/python-ideas@python.org/thread/5JKQMIC...