Skip to content

Commit 1b1c61a

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

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
@@ -1601,6 +1601,11 @@ argument::
16011601
See also :ref:`the argparse howto on ambiguous arguments <specifying-ambiguous-arguments>`
16021602
for more details.
16031603

1604+
.. versionchanged:: 3.14
1605+
Negative-number matching was expanded to include numbers in scientific
1606+
notation (``-2.5e-6``), numbers containing underscores (``-1_234.5``),
1607+
and complex numbers (``-1.2e-3j``).
1608+
16041609
.. _prefix-matching:
16051610

16061611
Argument abbreviations (prefix matching)

0 commit comments

Comments
 (0)