Skip to content

Commit e372f81

Browse files
committed
Link to .pth and .start files docs
1 parent 64a475c commit e372f81

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/whatsnew/3.15.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,14 +457,14 @@ agen() for x in a)``.
457457
:pep:`829`: Package startup configuration files
458458
-----------------------------------------------
459459

460-
Loaded by the :mod:`site` module when ``-S`` is not given, :file:`.pth` files
460+
Loaded by the :mod:`site` module when ``-S`` is not given, :ref:`.pth files <site-pth-files>`
461461
can contain lines that both extend :data:`sys.path` and execute arbitrary code
462462
when the line starts with ``import`` (followed by a space or tab). The latter
463463
functionality can be problematic, since it is difficult to know exactly what
464464
gets executed when Python starts up.
465465

466466
As a step towards improving the ability to audit pre-start executable code,
467-
Python 3.15 introduces :file:`.start` files which contain entry point
467+
Python 3.15 introduces :ref:`.start files <site-start-files>` which contain entry point
468468
specifications of the form ``pkg.mod:callable`` where ``pkg.mod`` is the
469469
import path to the given callable. When Python starts up, the callable is
470470
located and called with no arguments.

0 commit comments

Comments
 (0)