8000 [3.12] Remove Python 3.5 hardcoded version in the tutorial appendix (… · python/cpython@efbc8c7 · GitHub
[go: up one dir, main page]

Skip to content

Commit efbc8c7

Browse files
[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 a855f82) Co-auth 8000 ored-by: Kerim Kabirov <the.privat33r+gh@pm.me>
1 parent 8e53f66 commit efbc8c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/tutorial/appendix.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Executable Python Scripts
4040
On BSD& 923C #39;ish Unix systems, Python scripts can be made directly executable, like
4141
shell scripts, by putting the line ::
4242

43-
#!/usr/bin/env python3.5
43+
#!/usr/bin/env python3
4444

4545
(assuming that the interpreter is on the user's :envvar:`PATH`) at the beginning
4646
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::
107107

108108
>>> import site
109109
>>> site.getusersitepackages()
110-
'/home/user/.local/lib/python3.5/site-packages'
110+
'/home/user/.local/lib/python3.x/site-packages'
111111

112112
Now you can create a file named :file:`usercustomize.py` in that directory and
113113
put anything you want in it. It will affect every invocation of Python, unless

0 commit comments

Comments
 (0)
0