]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-46852: Rename float.__set_format__() to float.__setformat__() (GH-31558) (GH...
authorVictor Stinner <vstinner@python.org>
Fri, 25 Feb 2022 15:13:34 +0000 (16:13 +0100)
committerGitHub <noreply@github.com>
Fri, 25 Feb 2022 15:13:34 +0000 (16:13 +0100)
commita549cd1fc55888e2e287714b25e2cb2251913909
treea4aeb15c154d8199485942e8967c6e5b41b59fb0
parent4560c7e605887fda3af63f8ce157abf94954d4d2
bpo-46852: Rename float.__set_format__() to float.__setformat__() (GH-31558) (GH-31581)

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)
Misc/NEWS.d/next/Core and Builtins/2022-02-25-02-01-42.bpo-46852._3zg8D.rst [new file with mode: 0644]
Objects/clinic/floatobject.c.h
Objects/floatobject.c