Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Doc/library/argparse.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1624,6 +1624,11 @@ argument::
See also :ref:`the argparse howto on ambiguous arguments <specifying-ambiguous-arguments>`
for more details.

.. versionchanged:: 3.14
Negative numbers in scientific notation (``-2.5e-6``), with underscores
(``-1_234.5``) and complex numbers (``-1.2e-3j``) are recognized as
negative numbers.

Comment on lines +1627 to +1631

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.. versionchanged:: 3.14
Negative numbers in scientific notation (``-2.5e-6``), with underscores
(``-1_234.5``) and complex numbers (``-1.2e-3j``) are recognized as
negative numbers.
.. 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)
Expand Down
Loading