Skip to content

bpo-46852: Rename float.__set_format__() to float.__setformat__() #31558

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

Merged
merged 1 commit into from
Feb 25, 2022
Merged

bpo-46852: Rename float.__set_format__() to float.__setformat__() #31558

merged 1 commit into from
Feb 25, 2022

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Feb 25, 2022

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.

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.
@vstinner
Copy link
Member Author

cc @serhiy-storchaka @mdickinson

@vstinner vstinner merged commit 7d03c8b into python:main Feb 25, 2022
@miss-islington
Copy link
Contributor

Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.9, 3.10.
🐍🍒⛏🤖

@vstinner vstinner deleted the float_setformat_typo branch February 25, 2022 02:05
@miss-islington
Copy link
Contributor

Sorry, @vstinner, I could not cleanly backport this to 3.10 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker 7d03c8be5af2f1559dbc35b775b3116dfd63cfb6 3.10

@miss-islington
Copy link
Contributor

Sorry @vstinner, I had trouble checking out the 3.9 backport branch.
Please backport using cherry_picker on command line.
cherry_picker 7d03c8be5af2f1559dbc35b775b3116dfd63cfb6 3.9

@bedevere-bot bedevere-bot removed the needs backport to 3.10 only security fixes label Feb 25, 2022
@bedevere-bot
Copy link

GH-31578 is a backport of this pull request to the 3.10 branch.

vstinner added a commit that referenced this pull request Feb 25, 2022
…-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)
@bedevere-bot bedevere-bot removed the needs backport to 3.9 only security fixes label Feb 25, 2022
@bedevere-bot
Copy link

GH-31581 is a backport of this pull request to the 3.9 branch.

vstinner added a commit that referenced this pull request Feb 25, 2022
…-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 b5c51d3.

(cherry picked from commit 7d03c8b)
asvetlov pushed a commit that referenced this pull request Feb 26, 2022
…-31558)

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.
hello-adam pushed a commit to hello-adam/cpython that referenced this pull request Jun 2, 2022
…thonGH-31558) (pythonGH-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 b5c51d3.

(cherry picked from commit 7d03c8b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants