O'Reilly logo
  • Vlad Bezden thinks this is interesting:

from numbers import Number

From

Cover of Functional Python Programming - Second Edition

Note

generic Number definition from numbers module