Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Implementing Function Overloading in Python. Parent comment
Alternatively, you could also use the abstract base classes in the numbers module - https://docs.python.org/3/library/numbers.html
numbers.Number may be a good choice.
Still, you are right, overloading like this may be okay as a thought exercise, but would raise some serious questions during a code review. :)
There are no comments on this comment yet.
Alternatively, you could also use the abstract base classes in the numbers module - https://docs.python.org/3/library/numbers.html
numbers.Number may be a good choice.
Still, you are right, overloading like this may be okay as a thought exercise, but would raise some serious questions during a code review. :)