]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
A lot of changes to make the command line more useful. You can now do:
authorGuido van Rossum <guido@python.org>
Thu, 22 Apr 1999 20:49:35 +0000 (20:49 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 22 Apr 1999 20:49:35 +0000 (20:49 +0000)
commiteeb88076e7f4a89ce76d271379ca0aced0c2d6c7
treeb999f4d5f33b92d5155b22ce3407f6ce699c7e3c
parentc4a623ebdc47a6da343837bf274070b5820933e4
A lot of changes to make the command line more useful.  You can now do:
  idle.py -e file ...    -- to edit files
  idle.py script arg ... -- to run a script
  idle.py -c cmd arg ... -- to run a command
Other options, see also the usage message (also new!) for more details:
  -d       -- enable debugger
  -s       -- run $IDLESTARTUP or $PYTHONSTARTUP
  -t title -- set Python Shell window's title
sys.argv is set accordingly, unless -e is used.
sys.path is absolutized, and all relevant paths are inserted into it.

Other changes:
- the environment in which commands are executed is now the __main__ module
- explicitly save sys.stdout etc., don't restore from sys.__stdout__
- new interpreter methods execsource(), execfile(), stuffsource()
- a few small nits
Tools/idle/PyShell.py