Skip to content
Open
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
43 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
59a1ad9
adding the depreceated tag
Krishna-web-hub Dec 8, 2025
defd2c3
The error indexing was fixed
Krishna-web-hub Dec 8, 2025
cd445fc
Fix trailing whitespace
Krishna-web-hub Dec 8, 2025
2e270ef
Restore missing free-threading documentation
Krishna-web-hub Dec 8, 2025
3e87e19
fixing some minor error
Krishna-web-hub Dec 8, 2025
1867c71
fixing some minor error part 2
Krishna-web-hub Dec 8, 2025
ef450f6
fixing some minor error part 3
Krishna-web-hub Dec 8, 2025
4d27843
Fix NEWS entry format
Krishna-web-hub Dec 8, 2025
83ff9bf
Final cleanup of NEWS entry format 2
Krishna-web-hub Dec 8, 2025
77cc182
changes in the argparse.rst
Krishna-web-hub Dec 8, 2025
1a5c449
Remove unnecessary NEWS entry
Krishna-web-hub Dec 8, 2025
2dd07bb
Fixing the issue as requested
Krishna-web-hub Dec 11, 2025
850c986
Added the Changes done before.
Krishna-web-hub Dec 26, 2025
7f95d28
done the changes
Krishna-web-hub Dec 26, 2025
18cbbae
done the changes#1
Krishna-web-hub Dec 26, 2025
554a3ca
Apply suggestion from @picnixz
Krishna-web-hub Jan 1, 2026
312aa0f
Apply suggestion from @picnixz
Krishna-web-hub Jan 1, 2026
53031db
Done the changes
Krishna-web-hub Jan 2, 2026
6afe4d5
Done the new changes
Krishna-web-hub Jan 2, 2026
a10e6a5
The versionadded is rectified
Krishna-web-hub Jan 2, 2026
d551718
Merge branch 'main' into doc-fix-84116
Krishna-web-hub Jan 2, 2026
6f94eda
Update Doc/library/argparse.rst
Krishna-web-hub Jan 3, 2026
d0ccf81
Merge branch 'main' into doc-fix-84116
Krishna-web-hub Jan 5, 2026
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
15 changes: 8 additions & 7 deletions Doc/howto/free-threading-python.rst
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,12 @@ after the main thread is running. The following objects are immortalized:
* :ref:`classes <classes>` (type objects)

Because immortal objects are never deallocated, applications that create many
objects of these types may see increased memory usage. This is expected to be
addressed in the 3.14 release.
objects of these types may see increased memory usage. Work to further reduce
this overhead continued in the 3.14 release.

Additionally, numeric and string literals in the code as well as strings
returned by :func:`sys.intern` are also immortalized. This behavior is
expected to remain in the 3.14 free-threaded build.
returned by :func:`sys.intern` are also immortalized. This behavior remains
in the 3.14 free-threaded build.


Frame objects
Expand Down Expand Up @@ -152,9 +152,10 @@ Programs that spend most of their time in C extensions or I/O will see
less of an impact. The largest impact is because the specializing adaptive
interpreter (:pep:`659`) is disabled in the free-threaded build. We expect
to re-enable it in a thread-safe way in the 3.14 release. This overhead is
expected to be reduced in upcoming Python release. We are aiming for an
overhead of 10% or less on the pyperformance suite compared to the default
GIL-enabled build.
expected to be reduced in upcoming Python release. This overhead was reduced
in the 3.14 release. Reducing overhead further remains an active development goal,
with an aim for 10% or less on the pyperformance suite compared to the default GIL-enabled
build.


Behavioral changes
Expand Down
22 changes: 18 additions & 4 deletions Doc/library/argparse.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1664,7 +1664,7 @@
[dest], [required], \
[help], [metavar])
Copy link
Member

Choose a reason for hiding this comment

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

Please add back this documentation! We only want to document _SubParserAction.add_parser but we don't want to change other documentation.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have added the changes only having _SubParserAction.add_parser.

Copy link
Member

Choose a reason for hiding this comment

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

According to the diff, no. I don't see where the required parameter is documented. Please first fix the conflicts.


Many programs split up their functionality into a number of subcommands,

Check warning on line 1667 in Doc/library/argparse.rst

View workflow job for this annotation

GitHub Actions / Docs / Docs

Inline strong start-string without end-string. [docutils]

Check warning on line 1667 in Doc/library/argparse.rst

View workflow job for this annotation

GitHub Actions / Docs / Docs

Inline emphasis start-string without end-string. [docutils]
for example, the ``svn`` program can invoke subcommands like ``svn
checkout``, ``svn update``, and ``svn commit``. Splitting up functionality
Copy link
Member

Choose a reason for hiding this comment

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

For instance where is this line? it's not here anymore.

this way can be a particularly good idea when a program performs several
Expand All @@ -1672,10 +1672,24 @@
: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:

* *title* - title for the sub-parser group in help output; by default
Copy link
Member

Choose a reason for hiding this comment

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

The section "descriptions of parameters" is tied to ArgumentParser.add_subparsers. Yoiu are documenting _SubParsersAction.add_parser which is different. In other words, don't change the "Description of parameters" section.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you @picnixz ,
Okay i will undo the changes, but will i add the block for _SubparsersAction.add_parser just below the example part of the Argument.add_subparsers

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update the free-threading how-to guide for 3.14 status.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Document ``help`` and ``aliases`` parameters for
Copy link
Member

Choose a reason for hiding this comment

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

No need for a NEWS entry. You can delete this file.

Copy link
Contributor Author

@Krishna-web-hub Krishna-web-hub Dec 8, 2025

Choose a reason for hiding this comment

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

Hi @picnixz,
I have deleted this file but the test bedevere/news fails. If you can add skip news tag then it can pass the test.

Copy link
Member

Choose a reason for hiding this comment

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

Please delete the file. I'll add the label. In general, if the CI fails because of a lack of a NEWS, if you know that there shouldn't be a NEWS, just don't bother about the CI being red. A triager or a core dev will add the label when needed.

:meth:`argparse._SubParsersAction.add_parser` in the :mod:`argparse`
documentation.
Loading