Skip to content

Commit 1f0cd3c

Browse files
ananthan-123aerosblurb-it[bot]
authored
bpo-39379: Remove reference to sys.path[0] being absolute path in whatsnew (GH-18561)
Remove reference to sys.path[0] being absolute path in whatsnew Co-Authored-By: Kyle Stanley <[email protected]> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Kyle Stanley <[email protected]>
1 parent dc04a05 commit 1f0cd3c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Doc/whatsnew/3.9.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,10 @@ Other Language Changes
8989

9090
* Python now gets the absolute path of the script filename specified on
9191
the command line (ex: ``python3 script.py``): the ``__file__`` attribute of
92-
the :mod:`__main__` module and ``sys.path[0]`` become an
93-
absolute path, rather than a relative path. These paths now remain valid
94-
after the current directory is changed by :func:`os.chdir`. As a side effect,
95-
a traceback also displays the absolute path for :mod:`__main__` module frames
96-
in this case.
92+
the :mod:`__main__` module became an absolute path, rather than a relative
93+
path. These paths now remain valid after the current directory is changed
94+
by :func:`os.chdir`. As a side effect, the traceback also displays the
95+
absolute path for :mod:`__main__` module frames in this case.
9796
(Contributed by Victor Stinner in :issue:`20443`.)
9897

9998
* In the :ref:`Python Development Mode <devmode>` and in debug build, the

0 commit comments

Comments
 (0)