Skip to content

gh-114050: Fix crash when more than two arguments are passed to int() - #114067

Merged
serhiy-storchaka merged 2 commits into
python:mainfrom
kcatss:longobject_typo
Jan 18, 2024
Merged

serhiy-storchaka merged 2 commits into
python:mainfrom
kcatss:longobject_typo

Conversation

@kcatss

@kcatss kcatss commented Jan 14, 2024 •

Copy link
Copy Markdown
Contributor

Remove the typo in the format string, as it is unnecessary

issue : #114050

@ghost

ghost commented Jan 14, 2024 •

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.
CLA signed

@bedevere-app

bedevere-app Bot commented Jan 14, 2024

Copy link
Copy Markdown

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@AA-Turner

Copy link
Copy Markdown
Member

Can you add a test and a blurb entry?

A

@hauntsaninja hauntsaninja left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the find! :-)

@serhiy-storchaka serhiy-storchaka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@serhiy-storchaka

Copy link
Copy Markdown
Member

A good place for test: in Lib/test/test_int.py, just after self.assertRaises(TypeError, int, 1, 12). But use valid first two args.

@Eclips4

Eclips4 commented Jan 17, 2024

Copy link
Copy Markdown
Member

To help this move forward I added a test case and NEWS entry.

@serhiy-storchaka serhiy-storchaka changed the title gh-114050: Remove typo format string in longobject Jan 18, 2024
@serhiy-storchaka
serhiy-storchaka merged commit a571a2f into python:main Jan 18, 2024
kulikjak pushed a commit to kulikjak/cpython that referenced this pull request Jan 22, 2024
… int() (pythonGH-114067)

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
aisk pushed a commit to aisk/cpython that referenced this pull request Feb 11, 2024
… int() (pythonGH-114067)

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 2024
… int() (pythonGH-114067)

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

6 participants