https://github.com/python/cpython/commit/8ed1479619a3487af72a7c44bf61c9711370d4da commit: 8ed1479619a3487af72a7c44bf61c9711370d4da branch: main author: Timothy Poon <[email protected]> committer: savannahostrowski <[email protected]> date: 2026-08-08T01:42:23Z summary:
gh-155339: Document the change of behaviour about parsing negative numbers from 3.14 in argparse (#155340) 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 0eba8ca932be1f..b2318ddace8514 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]
