From 3dd8800afafef9e0bf282195c281d2940a78542d Mon Sep 17 00:00:00 2001 From: Kerim Kabirov Date: Sun, 7 Apr 2024 22:15:13 +0200 Subject: [PATCH 1/3] Remove Python 3.5 hardcoded version in the tutorial appendix --- Doc/tutorial/appendix.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/tutorial/appendix.rst b/Doc/tutorial/appendix.rst index 4bea0d8a49ce20..e479753e46d3d7 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/python/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 From 014f731df11e056181e688c9676c2f11948da628 Mon Sep 17 00:00:00 2001 From: Kerim Kabirov Date: Mon, 8 Apr 2024 13:54:13 +0200 Subject: [PATCH 2/3] Remove the dot --- Doc/tutorial/appendix.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/tutorial/appendix.rst b/Doc/tutorial/appendix.rst index e479753e46d3d7..4efc0b2cc924a7 100644 --- a/Doc/tutorial/appendix.rst +++ b/Doc/tutorial/appendix.rst @@ -107,7 +107,7 @@ of your user site-packages directory. Start Python and run this code:: >>> import site >>> site.getusersitepackages() - '/home/user/.local/lib/python/site-packages'. + '/home/user/.local/lib/python/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 From 4f616977ca76826a5dc8ce51f2f7484c40e3d141 Mon Sep 17 00:00:00 2001 From: Kerim Kabirov Date: Mon, 6 May 2024 17:10:35 +0200 Subject: [PATCH 3/3] Change example Co-authored-by: Petr Viktorin --- Doc/tutorial/appendix.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/tutorial/appendix.rst b/Doc/tutorial/appendix.rst index 4efc0b2cc924a7..195d600386a53f 100644 --- a/Doc/tutorial/appendix.rst +++ b/Doc/tutorial/appendix.rst @@ -107,7 +107,7 @@ of your user site-packages directory. Start Python and run this code:: >>> import site >>> site.getusersitepackages() - '/home/user/.local/lib/python/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