-
-
Notifications
You must be signed in to change notification settings - Fork 30.8k
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
Tutorial: command for python -c
should be consistent with main command
#112146
Comments
-c
-- [Sierra Camper](https://mail.python.org/archives/list/docs@python.org/thread/72GVL6O6HSEHIOTX365M5ITHCDTP5UN6/)python -c
should be consistent with main command
In https://docs.python.org/3/tutorial/interpreter.html, the main command is |
I disagree. Explain that since the actual command word needed or allowed varies by OS and installation, we use the generic 'python' except in literal code examples where something more specific is needed, and that users should interpret 'python' as needed. It might be good to explain that a now generic 'python3' may also work to get the 'latest' python3.x. |
The initial statement "The Python interpreter is usually installed as /usr/local/bin/python3.12 on those machines where it is available" is unix specific and is both wrong and meaningless for the majority of beginners, the presumed target of the tutorial. Version specific statement should explicitly say so. Start with "The Python 3.12 interpreter ..." whatever the continuation. The box with "python3.12" is wrong for Windows users who install from python.org (and maybe other places other than Microsoft store) and install the recommended way, which is to use the py launcher and not add the python3.12 directory to PATH. I believe that a majority of beginners are using Windows releases and therefore think the tutorial should not treat them as an afterthought. |
A deeper problem is that 'Invoking the interpreter' only discusses starting Python from a command line, which may the the least common way beginners start Python. It ignores icons, menus, and file dialogs. |
Is the issue now about updating the tutorial to help Windows users? I believe that issue is different than what the title says. I believe the original issue stated original title no longer an issue as I can not find the inconsistency. Should the title be changed to add a tutorial information for Windows users, or create a new issue? |
The inconsistency reported by a user, between |
No description provided.
The text was updated successfully, but these errors were encountered: