Skip to content

Conversation

@mdickinson
Copy link
Member

@mdickinsonmdickinson commented Jan 13, 2024

[Manual backport of #114015 to the 3.11 branch]

Fix a bug in the regex used for parsing a string input to the fractions.Fraction constructor. That bug led to an inconsistent exception message being given for some inputs.

…ex (python#114015) Fix a bug in the regex used for parsing a string input to the `fractions.Fraction` constructor. That bug led to an inconsistent exception message being given for some inputs. --------- Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Mark Dickinson <[email protected]>
@mdickinsonmdickinson changed the title [3.11] gh-114014: Update fractions.Fraction()'s rational parsing regex (GH-114015)[3.11] gh-114014: Update fractions.Fraction()'s rational parsing regex (GH-114015)Jan 13, 2024
@terryjreedyterryjreedy merged commit 41edd37 into python:3.11Jan 13, 2024
Sign up for freeto 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

@mdickinson@terryjreedy@thatbirdguythatuknownot@AA-Turner