Skip to content

Commit 524561b

Browse files
miss-islingtonptim0626savannahostrowski
authored
[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 8ed1479) Co-authored-by: Timothy Poon <62692924+ptim0626@users.noreply.github.com> Co-authored-by: Savannah Ostrowski <savannah@python.org>
1 parent 10c48a9 commit 524561b

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)