Skip to content

Commit 175c53a

Browse files
committed
Clarify the change of behaviour from 3.14 about parsing negative numbers
1 parent e469fa9 commit 175c53a

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 numbers in scientific notation (e.g. ``-2.5e-6``), with
1629+
underscores (e.g. ``-1_234.5``) and complex numbers (e.g. ``-1.2e-3j``)
1630+
are recognized as negative numbers.
1631+
16271632
.. _prefix-matching:
16281633

16291634
Argument abbreviations (prefix matching)

0 commit comments

Comments
 (0)