Mark Dickinson <dicki...@gmail.com> added the comment:

> This issue if for optimization only. It does not expand the math module API.

I think it does, though. The PR adds something to the math module that's 
tested, that needs to be maintained for other modules to work, and that's 
imported for use in another module; that smells like an element of the API to 
me, even with the leading underscore in the name. Other Python implementations 
would also need to implement math._as_integer_ratio for the pure Python 
fractions code to continue working. If we're going to expand the math module 
API to include such a function (and I don't think we should), we should do it 
properly: remove the leading underscore, and add documentation. But as you say, 
that's a separate issue.

I'm with Raymond here; I don't think this change is desirable for the math 
module, either with or without the leading underscore in the name.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue37884>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to