Skip to content

Commit

Permalink
bpo-20443: Update What's New In Python 3.9 (pythonGH-17986)
Browse files Browse the repository at this point in the history
The sys.argv[0] change has been reverted.
  • Loading branch information
vstinner authored and shihai1991 committed Jan 31, 2020
1 parent 97b0fa9 commit 3c1f741
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/whatsnew/3.9.rst
Expand Up @@ -83,7 +83,7 @@ Other Language Changes

* Python now gets the absolute path of the script filename specified on
the command line (ex: ``python3 script.py``): the ``__file__`` attribute of
the :mod:`__main__` module, ``sys.argv[0]`` and ``sys.path[0]`` become an
the :mod:`__main__` module and ``sys.path[0]`` become an
absolute path, rather than a relative path. These paths now remain valid
after the current directory is changed by :func:`os.chdir`. As a side effect,
a traceback also displays the absolute path for :mod:`__main__` module frames
Expand Down

0 comments on commit 3c1f741

Please sign in to comment.