3 ms·
In addition to the obvious issues, this method ignores python's __abs__: https://docs.python.org/3/reference/datamodel.html#object.__abs__ https://docs.python.
by sudobash1 5y ago
In addition to the obvious issues, this method ignores python's __abs__:
https://docs.python.org/3/reference/datamodel.html#object.__abs__ https://docs.python.org/3/reference/datamodel.html#object.__...
You can make you own "numeric" types in python by implementing the proper methods in your numeric class.