summaryrefslogtreecommitdiffstats
path: root/Modules/main.c
Commit message (Collapse)AuthorAgeFilesLines
* Add PYTHONHOME to the usage message.Guido van Rossum1997-04-301-0/+2
|
* OK, I lied. On Windows, _IOLBF seems to be the same as fullGuido van Rossum1997-04-111-4/+8
| | | | | buffering, so to get the normal behavior back, I set it to unbuffered.
* Change in when and how stdin and stdout are set to line-buffering.Guido van Rossum1997-04-111-3/+5
| | | | | | | This used to be done whenever stdin was interactive. Now we only do it when the -i flag is given. Also (and this is the real reason for this fix) we explicitly allocate a buffer -- this seems to be necessary on Windows.
* Add -O option which sets Py_OptimizeFlag to avoid emitting SET_LINENO.Guido van Rossum1997-03-031-2/+7
| | | | | Fred: sorry, I hadn't checked these changes in. This should fix your tracebacks!
* Add parentheses around && within || as gcc -Wall advises.Guido van Rossum1997-02-141-1/+1
|
* My version of Lee Busby's patches to make '-i' pretend stdin is a ttyGuido van Rossum1997-02-141-22/+35
| | | | | | | | | | | | | | | even if it isn't. Changes: - set the global flag Py_InteractiveFlag when -i is given - call Py_FdIsInteractive() instead of isatty() - make stdin unbuffered, too, when using -u - make stdin and stdout line buffered, when stdin is interactive and not -u Note that setting the environment variable PYTHONINSPECT does not have these extra effects of -i. (Should it?) Unlike Lee's changes, I don't set change the prompt to go to stderr when -i is given.
* Fix the _setmode() patch for MS_WINDOWS: include <fcntl.h> and useGuido van Rossum1997-01-171-2/+6
| | | | fileno(std*).
* On Windows, -u implies binary mode for stdin/stdoutGuido van Rossum1997-01-111-0/+4
| | | | (as well as unbuffered stdout/stderr).
* Include unistd.h to keep gcc -Wall happy.Guido van Rossum1996-12-091-0/+3
|
* Keep gcc -Wall happy.Guido van Rossum1996-12-051-2/+2
|
* New permission notice, includes CNRI.Guido van Rossum1996-10-251-13/+20
|
* New style names for getprogramname and getargcargvGuido van Rossum1996-07-211-6/+6
|
* Made comment for getprogramname() more helpful.Guido van Rossum1996-06-201-1/+2
|
* grand renaming; added copyright to some filesGuido van Rossum1996-05-281-8/+3
|
* Initial revisionGuido van Rossum1995-08-041-0/+246