Kaydet (Commit) 27f550cd authored tarafından Guido van Rossum's avatar Guido van Rossum

Nits: document use of $IDLESTARTUP; display idle version

üst fcf94d4e
...@@ -16,6 +16,7 @@ from EditorWindow import EditorWindow, fixwordbreaks ...@@ -16,6 +16,7 @@ from EditorWindow import EditorWindow, fixwordbreaks
from FileList import FileList from FileList import FileList
from ColorDelegator import ColorDelegator from ColorDelegator import ColorDelegator
from OutputWindow import OutputWindow from OutputWindow import OutputWindow
import idlever
# We need to patch linecache.checkcache, because we don't want it # We need to patch linecache.checkcache, because we don't want it
# to throw away our <pyshell#...> entries. # to throw away our <pyshell#...> entries.
...@@ -406,8 +407,9 @@ class PyShell(OutputWindow): ...@@ -406,8 +407,9 @@ class PyShell(OutputWindow):
def begin(self): def begin(self):
self.resetoutput() self.resetoutput()
self.write("Python %s on %s\n%s\n" % self.write("Python %s on %s\n%s\nIDLE %s\n" %
(sys.version, sys.platform, sys.copyright)) (sys.version, sys.platform, sys.copyright,
idlever.IDLE_VERSION))
try: try:
sys.ps1 sys.ps1
except AttributeError: except AttributeError:
...@@ -639,7 +641,7 @@ usage: idle.py [-c command] [-d] [-e] [-s] [-t title] [arg] ... ...@@ -639,7 +641,7 @@ usage: idle.py [-c command] [-d] [-e] [-s] [-t title] [arg] ...
-c command run this command -c command run this command
-d enable debugger -d enable debugger
-e edit mode; arguments are files to be edited -e edit mode; arguments are files to be edited
-s run $PYTHONSTARTUP before anything else -s run $IDLESTARTUP or $PYTHONSTARTUP before anything else
-t title set title of shell window -t title set title of shell window
When neither -c nor -e is used, and there are arguments, and the first When neither -c nor -e is used, and there are arguments, and the first
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment