Skip to content
Draft
Show file tree
Hide file tree
Changes from 7 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
15 changes: 8 additions & 7 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

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])

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
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
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
:meth:`argparse._SubParsersAction.add_parser` in the :mod:`argparse`
documentation.
Loading