We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
GitHub fields:
assignee = None closed_at = <Date 2013-06-23.12:57:47.291> created_at = <Date 2013-06-04.23:11:30.633> labels = ['interpreter-core'] title = 'format(float, str): integer overflow for huge precision' updated_at = <Date 2013-06-23.12:57:47.290> user = 'https://github.com/vstinner'
bugs.python.org fields:
activity = <Date 2013-06-23.12:57:47.290> actor = 'vstinner' assignee = 'none' closed = True closed_date = <Date 2013-06-23.12:57:47.291> closer = 'vstinner' components = ['Interpreter Core'] creation = <Date 2013-06-04.23:11:30.633> creator = 'vstinner' dependencies = [] files = ['30465'] hgrepos = [] issue_num = 18137 keywords = ['patch'] message_count = 2.0 messages = ['190629', '191693'] nosy_count = 4.0 nosy_names = ['mark.dickinson', 'vstinner', 'python-dev', 'serhiy.storchaka'] pr_nums = [] priority = 'normal' resolution = 'fixed' stage = None status = 'closed' superseder = None type = None url = 'https://bugs.python.org/issue18137' versions = ['Python 2.7', 'Python 3.3', 'Python 3.4']
The text was updated successfully, but these errors were encountered:
format(1.2, ".%sf" % (2**32 + 2)) returns "1.20": the integer overflow is not catced.
Attached patch fixes the issue.
Sorry, something went wrong.
New changeset ef5175d08e7e by Victor Stinner in branch '3.3': Issue bpo-18137: Detect integer overflow on precision in float.__format__() and http://hg.python.org/cpython/rev/ef5175d08e7e
New changeset 81fef2666ebb by Victor Stinner in branch 'default': (Merge 3.3) Issue bpo-18137: Detect integer overflow on precision in http://hg.python.org/cpython/rev/81fef2666ebb
New changeset d2b4f59943fa by Victor Stinner in branch '2.7': Issue bpo-18137: Detect integer overflow on precision in float.__format__() http://hg.python.org/cpython/rev/d2b4f59943fa
No branches or pull requests
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: