8000 [3.12] Remove Python 3.5 hardcoded version in the tutorial appendix (GH-117612) by miss-islington · Pull Request #118707 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.12] Remove Python 3.5 hardcoded version in the tutorial appendix (GH-117612) #118707

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Remove Python 3.5 hardcoded version in the tutorial appendix (GH-117612)
(cherry picked from commit a855f82)

Co-authored-by: Kerim Kabirov <the.privat33r+gh@pm.me>
  • Loading branch information
Privat33r-dev authored and miss-islington committed May 7, 2024
commit f0d803863f9e70cd420634bbe97727e2600d8e33
4 changes: 2 additions & 2 deletions Doc/tutorial/appendix.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
0