https://github.com/python/cpython/commit/1b1c61a94f0685bb0be707b5374376f3084159fe commit: 1b1c61a94f0685bb0be707b5374376f3084159fe branch: 3.14 author: Miss Islington (bot) <[email protected]> committer: savannahostrowski <[email protected]> date: 2026-08-07T19:00:51-07:00 summary:
[3.14] gh-155339: Document the change of behaviour about parsing negative numbers from 3.14 in argparse (GH-155340) (#155372) gh-155339: Document the change of behaviour about parsing negative numbers from 3.14 in argparse (GH-155340) (cherry picked from commit 8ed1479619a3487af72a7c44bf61c9711370d4da) Co-authored-by: Timothy Poon <[email protected]> Co-authored-by: Savannah Ostrowski <[email protected]> files: M Doc/library/argparse.rst diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst index 9709d7e4435770..6e3d0fea9ec9b0 100644 --- a/Doc/library/argparse.rst +++ b/Doc/library/argparse.rst @@ -1601,6 +1601,11 @@ argument:: See also :ref:`the argparse howto on ambiguous arguments <specifying-ambiguous-arguments>` for more details. +.. versionchanged:: 3.14 + Negative-number matching was expanded to include numbers in scientific + notation (``-2.5e-6``), numbers containing underscores (``-1_234.5``), + and complex numbers (``-1.2e-3j``). + .. _prefix-matching: Argument abbreviations (prefix matching) _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
