summaryrefslogtreecommitdiffstats
path: root/Modules/main.c
Commit message (Collapse)AuthorAgeFilesLines
* Added -X option to suppress default import of site.py. Also split theGuido van Rossum1997-08-291-5/+13
| | | | | usage message in *three* parts under 510 bytes, for low-end ANSI compatibility.
* Swap the sense of the -X option vis-a-vis Py_UseClassExceptionsFlag soBarry Warsaw1997-08-291-2/+3
| | | | | that class based exceptions are enabled by default. -X disables them in favor of the old-style string exceptions.
* Parse new command line option -X which enables exception classes.Barry Warsaw1997-08-291-1/+6
|
* Attempt to import readline at interactive startup.Guido van Rossum1997-08-051-0/+8
|
* Py_Cleanup() is now Py_Finalize().Guido van Rossum1997-08-051-1/+1
|
* Free the malloc'ed buffer that holds the command once we're done with it.Guido van Rossum1997-08-021-2/+3
| | | | Instead of calling Py_Exit(sts), call Py_Cleanup() and return sts.
* Removed a bunch of extern declarations of functions that are nowGuido van Rossum1997-07-191-6/+0
| | | | properly declared in Python.h.
* This is no longer the real main program; it now defines Py_Main(), soGuido van Rossum1997-07-191-30/+7
| | | | | | | | | | | | | | | | it can be placed in the library. Other, related changes: - Moved the inspection of some environment variables to Py_Initialize(). - Got rid of -s option. - Moved Py_GetProgramName() and related logic to pythonrun.c; call Py_SetProgramName() instead. - Print the version header *after* successful initialization.
* Add platform to welcome message.Guido van Rossum1997-05-191-2/+3
|
* 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