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/[email protected]/thread/5JKQMIC6EUVCD7IBWMRHY7DRTTNSBOWG/

_______________________________________________
Python-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/NU3774YDVCIUH44C7RZXCSSVRVYSLCUI/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to