diff options
author | Victor Stinner <vstinner@python.org> | 2022-02-25 14:47:07 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-25 14:47:07 (GMT) |
commit | 0848da19ce8ea037ab1cfc569778e94bf8e3b24a (patch) | |
tree | de298922960d324654f3683da0d63697e739925c /Misc/NEWS.d | |
parent | 2b7e04d61274af03426975fe824ed83eca35b035 (diff) | |
download | cpython-0848da19ce8ea037ab1cfc569778e94bf8e3b24a.zip cpython-0848da19ce8ea037ab1cfc569778e94bf8e3b24a.tar.gz cpython-0848da19ce8ea037ab1cfc569778e94bf8e3b24a.tar.bz2 |
bpo-46852: Rename float.__set_format__() to float.__setformat__() (GH-31558) (GH-31578)
Rename the private undocumented float.__set_format__() method to
float.__setformat__() to fix a typo introduced in Python 3.7. The
method is only used by test_float.
The change enables again test_float tests on the float format which
were previously skipped because of the typo.
The typo was introduced in Python 3.7 by bpo-20185
in commit b5c51d3dd95bbfde533655fb86ac0f96f771ba7b.
(cherry picked from commit 7d03c8be5af2f1559dbc35b775b3116dfd63cfb6)
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2022-02-25-02-01-42.bpo-46852._3zg8D.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2022-02-25-02-01-42.bpo-46852._3zg8D.rst b/Misc/NEWS.d/next/Core and Builtins/2022-02-25-02-01-42.bpo-46852._3zg8D.rst new file mode 100644 index 0000000..65b8264 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2022-02-25-02-01-42.bpo-46852._3zg8D.rst @@ -0,0 +1,3 @@ +Rename the private undocumented ``float.__set_format__()`` method to +``float.__setformat__()`` to fix a typo introduced in Python 3.7. The method +is only used by test_float. Patch by Victor Stinner. |