-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
bpo-46852: Remove the float.__set_format__() method #31585
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Remove the undocumented private float.__set_format__() method, previously known as float.__set_format__() in Python 3.7. Its docstring said: "You probably don't want to use this function. It exists mainly to be used in Python's test suite."
@mdickinson: Would you mind to review this change? |
Happy to do so, if you'll allow me time. :-) But it appears I'm too late. |
float.__setformat__('double', self.save_formats['double']) | ||
float.__setformat__('float', self.save_formats['float']) | ||
|
||
def test_getformat(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aren't these tests still relevant?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but I think test_getformat
should be kept.
Remove the undocumented private float.__set_format__() method, previously known as float.__set_format__() in Python 3.7. Its docstring said: "You probably don't want to use this function. It exists mainly to be used in Python's test suite."
Sorry, sometimes I can be too impatient. I took your comment on the issue as an approval of the overall removal.
... But I didn't review carefully removed tests! I saw I wrote #31601 to add getformat tests removed by mistake. Thanks for the review. Sorry again for not waiting for your review. |
Remove the undocumented private float.set_format() method,
previously known as float.set_format() in Python 3.7. Its
docstring said: "You probably don't want to use this function. It
exists mainly to be used in Python's test suite."
https://bugs.python.org/issue46852