[issue47079] Integral.denominator shouldn't return an int

Serhiy Storchaka report at bugs.python.org
Sat Mar 26 07:13:44 EDT 2022


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

The module documentation should not contain all historical reasons of every design decision. If you are interesting why something was done in one way or another, do your research.

One of reasons is that type(self) not always have a constructor with compatible interface. So it may work for your integer-like type, but in general case.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue47079>
_______________________________________


More information about the Python-bugs-list mailing list