https://github.com/python/cpython/commit/524561b08b475e49c4f2593050b907c0f6d2dcaa commit: 524561b08b475e49c4f2593050b907c0f6d2dcaa branch: 3.15 author: Miss Islington (bot) <[email protected]> committer: savannahostrowski <[email protected]> date: 2026-08-07T19:01:00-07:00 summary:
[3.15] gh-155339: Document the change of behaviour about parsing negative numbers from 3.14 in argparse (GH-155340) (#155371) 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 1549949c458fe3..9068190617ff87 100644 --- a/Doc/library/argparse.rst +++ b/Doc/library/argparse.rst @@ -1624,6 +1624,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]
