bpo-46852: Rename float.__set_format__() to float.__setformat__() (GH… · python/cpython@0848da1 · GitHub
Skip to content

Commit 0848da1

Browse files
authored
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 b5c51d3. (cherry picked from commit 7d03c8b)
1 parent 2b7e04d commit 0848da1

3 files changed

Lines changed: 20 additions & 17 deletions

File tree

Lines changed: 3 additions & 0 deletions

Objects/clinic/floatobject.c.h

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Objects/floatobject.c

Lines changed: 5 additions & 5 deletions

0 commit comments

Comments
 (0)