Skip to content

Commit 8ed1479

Browse files
gh-155339: Document the change of behaviour about parsing negative numbers from 3.14 in argparse (#155340)
Co-authored-by: Savannah Ostrowski <savannah@python.org>
1 parent 5ffefdb commit 8ed1479

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Doc/library/argparse.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1624,6 +1624,11 @@ argument::
16241624
See also :ref:`the argparse howto on ambiguous arguments <specifying-ambiguous-arguments>`
16251625
for more details.
16261626

1627+
.. versionchanged:: 3.14
1628+
Negative-number matching was expanded to include numbers in scientific
1629+
notation (``-2.5e-6``), numbers containing underscores (``-1_234.5``),
1630+
and complex numbers (``-1.2e-3j``).
1631+
16271632
.. _prefix-matching:
16281633

16291634
Argument abbreviations (prefix matching)

0 commit comments

Comments
 (0)