[issue25928] Add Decimal.as_integer_ratio()

Raymond Hettinger report at bugs.python.org
Mon Apr 4 22:39:13 EDT 2016


Raymond Hettinger added the comment:

I don't think a new public method should have been added.

Historically, we've been careful to not grow the API beyond what is in the spec or the dunder methods required to interface with standard Python.

The feature creep is at odds with the intended goals for the module that have been present since the outset.  As long as the spec remains unchanged, the API for this module should be treated as stable.

Another issue is that the API for the module is already so large that it impairs usability.  Please don't make it worse by adding new methods and inventing details that aren't in the spec.

----------
nosy: +tim.peters

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25928>
_______________________________________


More information about the Python-bugs-list mailing list