Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
810fde1
gh-140281: Doc: Update free-threading how-to
Krishna-web-hub Oct 24, 2025
b9ca059
gh-140281: Doc: Update free-threading how-to
Krishna-web-hub Oct 24, 2025
bfbf864
Merge branch 'main' into doc-fix-140281
Krishna-web-hub Oct 24, 2025
16a1c46
Fix trailing whitespace
Krishna-web-hub Oct 24, 2025
639865d
Merge branch 'doc-fix-140281' of https://github.com/Krishna-web-hub/c…
Krishna-web-hub Oct 24, 2025
3f0aa48
doc fixing of the cpython fixes#84116
Krishna-web-hub Oct 25, 2025
343648b
Docs: Document help and aliases for argparse.add_parser() (gh-84116)
Krishna-web-hub Oct 25, 2025
4b07ba3
Docs: Document help and aliases for argparse.add_parser() (gh-84116)
Krishna-web-hub Oct 25, 2025
8bb4bae
Fix trailing whitespace
Krishna-web-hub Oct 25, 2025
3361447
Fix trailing whitespace
Krishna-web-hub Oct 25, 2025
100207d
Fix trailing whitespace
Krishna-web-hub Oct 25, 2025
0f27e63
Fix trailing whitespace
Krishna-web-hub Oct 25, 2025
7e6102a
Fix trailing whitespace
Krishna-web-hub Oct 25, 2025
a76954c
Fix trailing whitespace
Krishna-web-hub Oct 25, 2025
ac2b754
Fix trailing errors
Krishna-web-hub Oct 25, 2025
b08e8ed
Fix trailing errors and spaces
Krishna-web-hub Oct 25, 2025
fa1d877
Fix docutils formatting, NEWS ref, and trailing whitespace
Krishna-web-hub Oct 25, 2025
e955fb0
Docs: Update argparse.rst and add NEWS entry
Krishna-web-hub Oct 25, 2025
3d4cf26
Delete Doc/howto/free-threading-python.rst
Krishna-web-hub Oct 25, 2025
e3af10b
Delete Misc/NEWS.d/next/Documentation/2025-10-25-00-49-43.gh-issue-14…
Krishna-web-hub Oct 25, 2025
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
187 changes: 0 additions & 187 deletions Doc/howto/free-threading-python.rst
Copy link
Member

Choose a reason for hiding this comment

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

Why are you deleting this?!

Copy link
Author

@Krishna-web-hub Krishna-web-hub Oct 25, 2025

Choose a reason for hiding this comment

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

Hello @StanFromIreland ,
Because i by mistakenly added the other branch commit in this branch.
please let me raise a new pr for it.I am very sorry for this mistake

This file was deleted.

21 changes: 18 additions & 3 deletions Doc/library/argparse.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1672,9 +1672,24 @@ Sub-commands
:class:`ArgumentParser` supports the creation of such subcommands with the
:meth:`!add_subparsers` method. The :meth:`!add_subparsers` method is normally
called with no arguments and returns a special action object. This object
has a single method, :meth:`~_SubParsersAction.add_parser`, which takes a
command name and any :class:`!ArgumentParser` constructor arguments, and
returns an :class:`!ArgumentParser` object that can be modified as usual.
has a single method, :meth:`~_SubParsersAction.add_parser`:

.. method:: _SubParsersAction.add_parser(name, *, help=None, aliases=None, **kwargs)

Creates and returns a new :class:`!ArgumentParser` object for the
subcommand *name*.

:param name: The name of the sub-command.
:param help: A short description for this sub-command. If provided,
it will be listed next to the command in the main
parser's help message (e.g., ``PROG --help``).
:param aliases: A list or sequence of strings that can be used as
alternative names for this sub-command (e.g., ``aliases=['r']``
for a ``'run'`` command).
:param kwargs: All other keyword arguments are passed directly to the
:class:`!ArgumentParser` constructor.

This returned :class:`!ArgumentParser` object can be modified as usual.

Description of parameters:

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Document ``help`` and ``aliases`` parameters for
:meth:`argparse._SubParsersAction.add_parser` in the :mod:`argparse`
documentation.
Loading