Am 13.03.2018 um 12:16 schrieb Steven D'Aprano:
How do Fractions convert to ints when they have no __int__ method?
It uses __trunc__: | In general, the int() conversion should try __int__() first and if| it is not found, try __trunc__().[https://www.python.org/dev/peps/pep-3141/]
-- Robin Koch -- https://mail.python.org/mailman/listinfo/python-list