From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 7 May 2024 13:35:09 +0000 (+0200) Subject: [3.12] Remove Python 3.5 hardcoded version in the tutorial appendix (GH-117612) ... X-Git-Tag: v3.12.4~127 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=efbc8c78c5cf5ddfdfdbcd436c11f10aead172b6;p=thirdparty%2FPython%2Fcpython.git [3.12] Remove Python 3.5 hardcoded version in the tutorial appendix (GH-117612) (GH-118707) Remove Python 3.5 hardcoded version in the tutorial appendix (GH-117612) (cherry picked from commit a855f824a2f5a310ffa58a973a8fe9feaa2500b3) Co-authored-by: Kerim Kabirov --- diff --git a/Doc/tutorial/appendix.rst b/Doc/tutorial/appendix.rst index 4bea0d8a49ce..195d600386a5 100644 --- a/Doc/tutorial/appendix.rst +++ b/Doc/tutorial/appendix.rst @@ -40,7 +40,7 @@ Executable Python Scripts On BSD'ish Unix systems, Python scripts can be made directly executable, like shell scripts, by putting the line :: - #!/usr/bin/env python3.5 + #!/usr/bin/env python3 (assuming that the interpreter is on the user's :envvar:`PATH`) at the beginning of the script and giving the file an executable mode. The ``#!`` must be the @@ -107,7 +107,7 @@ of your user site-packages directory. Start Python and run this code:: >>> import site >>> site.getusersitepackages() - '/home/user/.local/lib/python3.5/site-packages' + '/home/user/.local/lib/python3.x/site-packages' Now you can create a file named :file:`usercustomize.py` in that directory and put anything you want in it. It will affect every invocation of Python, unless