summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial
diff options
context:
space:
mode:
authorKerim Kabirov <the.privat33r+gh@pm.me>2024-05-07 13:28:16 (GMT)
committerGitHub <noreply@github.com>2024-05-07 13:28:16 (GMT)
commita855f824a2f5a310ffa58a973a8fe9feaa2500b3 (patch)
tree2b03fb8d86ba17b616324a3035cc5517b6e1580d /Doc/tutorial
parent7d90b8aadbd6993ee50a73b7536f769334718423 (diff)
downloadcpython-a855f824a2f5a310ffa58a973a8fe9feaa2500b3.zip
cpython-a855f824a2f5a310ffa58a973a8fe9feaa2500b3.tar.gz
cpython-a855f824a2f5a310ffa58a973a8fe9feaa2500b3.tar.bz2
Remove Python 3.5 hardcoded version in the tutorial appendix (GH-117612)
Diffstat (limited to 'Doc/tutorial')
-rw-r--r--Doc/tutorial/appendix.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/tutorial/appendix.rst b/Doc/tutorial/appendix.rst
index 10eb143..b8faf75 100644
--- a/Doc/tutorial/appendix.rst
+++ b/Doc/tutorial/appendix.rst
@@ -62,7 +62,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
@@ -129,7 +129,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