summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorCrowthebird <78076854+thatbirdguythatuknownot@users.noreply.github.com>2024-01-13 12:02:39 (GMT)
committerGitHub <noreply@github.com>2024-01-13 12:02:39 (GMT)
commitdd56b5748317c3d504d6a9660d9207620c547f5c (patch)
tree62da7311e73f41d4377f6138f9413976a20e371b /Misc
parentc7d59bd8cfa053e77ae3446c82afff1fd38a4886 (diff)
downloadcpython-dd56b5748317c3d504d6a9660d9207620c547f5c.zip
cpython-dd56b5748317c3d504d6a9660d9207620c547f5c.tar.gz
cpython-dd56b5748317c3d504d6a9660d9207620c547f5c.tar.bz2
gh-114014: Update `fractions.Fraction()`'s rational parsing regex (#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 <dickinsm@gmail.com>
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2024-01-13-11-34-29.gh-issue-114014.WRHifN.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2024-01-13-11-34-29.gh-issue-114014.WRHifN.rst b/Misc/NEWS.d/next/Library/2024-01-13-11-34-29.gh-issue-114014.WRHifN.rst
new file mode 100644
index 0000000..a6630d7
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2024-01-13-11-34-29.gh-issue-114014.WRHifN.rst
@@ -0,0 +1 @@
+Fixed a bug in :class:`fractions.Fraction` where an invalid string using ``d`` in the decimals part creates a different error compared to other invalid letters/characters. Patch by Jeremiah Gabriel Pascual.