diff --git a/Lib/code.py b/Lib/code.py index 2bd5fa3e795a619..6fe5782efe40a14 100644 --- a/Lib/code.py +++ b/Lib/code.py @@ -211,7 +211,7 @@ def interact(self, banner=None, exitmsg=None): sys.ps2 except AttributeError: sys.ps2 = "... " - cprt = 'Type "help", "copyright", "credits" or "license" for more information.' + cprt = 'Type "help()", "copyright", "credits" or "license()" for more information.' if banner is None: self.write("Python %s on %s\n%s\n(%s)\n" % (sys.version, sys.platform, cprt, diff --git a/Misc/NEWS.d/next/Core and Builtins/2023-05-14-13-14-08.gh-issue-104471.R6mwB8.rst b/Misc/NEWS.d/next/Core and Builtins/2023-05-14-13-14-08.gh-issue-104471.R6mwB8.rst new file mode 100644 index 000000000000000..071d6e75ae8a10a --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2023-05-14-13-14-08.gh-issue-104471.R6mwB8.rst @@ -0,0 +1 @@ +Starting the interactive Python shell now shows a parenthesis after help and license to show how users should interact with these functions inside of the shell