summaryrefslogtreecommitdiffstats
path: root/Python/pythonmain.c
Commit message (Collapse)AuthorAgeFilesLines
* Deleting zombiesGuido van Rossum2001-07-171-211/+0
|
* Allow mac user to set "command line flags" by option-starting python.Jack Jansen1995-07-291-0/+4
|
* Porting to CW CFM68KJack Jansen1995-06-271-0/+3
|
* Added 1995 to copyright message.Guido van Rossum1995-01-041-2/+2
| | | | | | bltinmodule.c: fixed coerce() nightmare in ternary pow(). modsupport.c (initmodule2): pass METH_FREENAME flag to newmethodobject(). pythonrun.c: move flushline() into and around print_error().
* * Python/pythonmain.c: fatal error if can't alloc mem for -cGuido van Rossum1994-09-291-1/+2
| | | | string
* Merge back to main trunkGuido van Rossum1994-08-301-15/+52
|
* * timemodule.c: Add hack for Solaris 2.Guido van Rossum1993-11-231-1/+1
| | | | | | | | | | | | | | | * posixmodule.c: don't prototype getcwd() -- it's not portable... * mappingobject.c: double-check validity of last_name_char in dict{lookup,insert,remove}. * arraymodule.c: need memmove only for non-STDC Suns. * Makefile: comment out HTML_LIBS and XT_USE by default * pythonmain.c: don't prototype getopt() -- it's not standardized * socketmodule.c: cast flags arg to {get,set}sockopt() and addrbuf arg to recvfrom() to (ANY*). * pythonrun.c (initsigs): fix prototype, make it static * intobject.c (LONG_BIT): only #define it if not already defined * classobject.[ch]: remove all references to unused instance_convert() * mappingobject.c (getmappingsize): Don't return NULL in int function.
* * pythonmain.c: -k option, usage message, more environment flags.Guido van Rossum1993-06-241-5/+31
| | | | | | | | | | | (the latter also in frozenmain.c) * ceval.c: global 'killprint' flag raises exception when printing an expression statement's value (useful for finding stray output) * timemodule.c: add asctime() and ctime(). Change julian date to 1-based origin (as intended and documented). * Removed unused DO_TIMES stuff from timemodule.c. Added 'epoch' and 'day0' globals (year where time.time() == 0 and day of the week the epoch started).
* Support for frozen scripts; added -i option.Guido van Rossum1993-04-011-1/+18
|
* * Changed all copyright messages to include 1993.Guido van Rossum1993-03-291-2/+2
| | | | | | | | | | | | | | | | | * Stubs for faster implementation of local variables (not yet finished) * Added function name to code object. Print it for code and function objects. THIS MAKES THE .PYC FILE FORMAT INCOMPATIBLE (the version number has changed accordingly) * Print address of self for built-in methods * New internal functions getattro and setattro (getattr/setattr with string object arg) * Replaced "dictobject" with more powerful "mappingobject" * New per-type functio tp_hash to implement arbitrary object hashing, and hashobject() to interface to it * Added built-in functions hash(v) and hasattr(v, 'name') * classobject: made some functions static that accidentally weren't; added __hash__ special instance method to implement hash() * Added proper comparison for built-in methods and functions
* Add $PYTHONSTARTUP feature.Guido van Rossum1992-09-031-0/+10
|
* * Makefile: cosmeticsGuido van Rossum1992-08-051-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | * socketmodule.c: get rid of makepair(); fix makesocketaddr to fix broken recvfrom() * socketmodule: get rid of getStrarg() * ceval.h: move eval_code() to new file eval.h, so compile.h is no longer needed. * ceval.c: move thread comments to ceval.h; always make save/restore thread functions available (for dynloaded modules) * cdmodule.c, listobject.c: don't include compile.h * flmodule.c: include ceval.h * import.c: include eval.h instead of ceval.h * cgen.py: add forground(); noport(); winopen(""); to initgl(). * bltinmodule.c, socketmodule.c, fileobject.c, posixmodule.c, selectmodule.c: adapt to threads (add BGN/END SAVE macros) * stdwinmodule.c: adapt to threads and use a special stdwin lock. * pythonmain.c: don't include getpythonpath(). * pythonrun.c: use BGN/END SAVE instead of direct calls; also more BGN/END SAVE calls etc. * thread.c: bigger stack size for sun; change exit() to _exit() * threadmodule.c: use BGN/END SAVE macros where possible * timemodule.c: adapt better to threads; use BGN/END SAVE; add longsleep internal function if BSD_TIME; cosmetics
* * Makefile adapted to changes below.Guido van Rossum1992-08-041-381/+3
| | | | | | | | | | | * split pythonmain.c in two: most stuff goes to pythonrun.c, in the library. * new optional built-in threadmodule.c, build upon Sjoerd's thread.{c,h}. * new module from Sjoerd: mmmodule.c (dynamically loaded). * new module from Sjoerd: sv (svgen.py, svmodule.c.proto). * new files thread.{c,h} (from Sjoerd). * new xxmodule.c (example only). * myselect.h: bzero -> memset * select.c: bzero -> memset; removed global variable
* Removed confusing, incorrect comment.Guido van Rossum1992-06-031-1/+1
|
* Copyright for 1992 addedGuido van Rossum1992-04-051-1/+1
|
* Add -v option (verbose) and get rid of finaloutput() function (unused)Guido van Rossum1992-03-271-11/+8
|
* Set sys.last_{type,value} to characteristics of last unhandled exception.Guido van Rossum1992-03-041-0/+2
|
* Get rid of "Unhandled exception: " altogether.Guido van Rossum1992-02-051-3/+0
|
* Don't print "Unhandled exception: " when one occurs -- just print its name.Guido van Rossum1992-01-271-0/+2
|
* Added -d option (increments debugging variable); mostly to get ridGuido van Rossum1992-01-191-3/+5
| | | | of a compiler warning.
* Don't depend on patchlevel.h.Guido van Rossum1992-01-141-2/+0
|
* Stop option processing immediately after "-c command",Guido van Rossum1992-01-021-12/+13
| | | | leaving additional options for the command to handle.
* Catch SystemExit and go away if it is caught.Guido van Rossum1991-12-311-0/+11
|
* printobject now returns an error codeGuido van Rossum1991-06-071-2/+4
|
* Add run_command() to implement "-c command".Guido van Rossum1991-06-071-9/+73
|
* Removed Think C 3.0 stuff and wish list.Guido van Rossum1991-06-041-34/+1
|
* Move allobjects.h to front (needed by THINK C precompiled headers)Guido van Rossum1991-04-161-2/+2
|
* Added isatty() for MPW.Guido van Rossum1991-04-041-0/+10
|
* Include patchlevel.h (to ensure it is distributed with the rest).Guido van Rossum1991-03-061-0/+2
|
* Added copyright notice.Guido van Rossum1991-02-191-0/+24
|
* Changes for THINK C 4.0.Guido van Rossum1990-12-201-9/+11
| | | | Don't call inittime() and initmath(), let config_*.c decide about those.
* "Compiling" versionGuido van Rossum1990-12-201-74/+321
|
* Some extra DECREFs.Guido van Rossum1990-11-181-3/+9
|
* Moved configuration-dependent initializations (etc.) to config_*.cGuido van Rossum1990-11-181-154/+9
|
* Call asa_done() in goaway().Guido van Rossum1990-10-141-0/+7
|
* Initial revisionGuido van Rossum1990-10-141-0/+297