summaryrefslogtreecommitdiff
path: root/Python/pythonmain.c
AgeCommit message (Collapse)AuthorLines
1995-07-29Allow mac user to set "command line flags" by option-starting python.Jack Jansen-0/+4
1995-06-27Porting to CW CFM68KJack Jansen-0/+3
1995-01-04Added 1995 to copyright message.Guido van Rossum-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().
1994-09-29 * Python/pythonmain.c: fatal error if can't alloc mem for -cGuido van Rossum-1/+2
string
1994-08-30Merge back to main trunkGuido van Rossum-15/+52
1993-11-23* timemodule.c: Add hack for Solaris 2.Guido van Rossum-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.
1993-06-24* pythonmain.c: -k option, usage message, more environment flags.Guido van Rossum-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).
1993-04-01Support for frozen scripts; added -i option.Guido van Rossum-1/+18
1993-03-29* Changed all copyright messages to include 1993.Guido van Rossum-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
1992-09-03Add $PYTHONSTARTUP feature.Guido van Rossum-0/+10
1992-08-05* Makefile: cosmeticsGuido van Rossum-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
1992-08-04* Makefile adapted to changes below.Guido van Rossum-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
1992-06-03Removed confusing, incorrect comment.Guido van Rossum-1/+1
1992-04-05Copyright for 1992 addedGuido van Rossum-1/+1
1992-03-27Add -v option (verbose) and get rid of finaloutput() function (unused)Guido van Rossum-11/+8
1992-03-04Set sys.last_{type,value} to characteristics of last unhandled exception.Guido van Rossum-0/+2
1992-02-05Get rid of "Unhandled exception: " altogether.Guido van Rossum-3/+0
1992-01-27Don't print "Unhandled exception: " when one occurs -- just print its name.Guido van Rossum-0/+2
1992-01-19Added -d option (increments debugging variable); mostly to get ridGuido van Rossum-3/+5
of a compiler warning.
1992-01-14Don't depend on patchlevel.h.Guido van Rossum-2/+0
1992-01-02Stop option processing immediately after "-c command",Guido van Rossum-12/+13
leaving additional options for the command to handle.
1991-12-31Catch SystemExit and go away if it is caught.Guido van Rossum-0/+11
1991-06-07printobject now returns an error codeGuido van Rossum-2/+4
1991-06-07Add run_command() to implement "-c command".Guido van Rossum-9/+73
1991-06-04Removed Think C 3.0 stuff and wish list.Guido van Rossum-34/+1
1991-04-16Move allobjects.h to front (needed by THINK C precompiled headers)Guido van Rossum-2/+2
1991-04-04Added isatty() for MPW.Guido van Rossum-0/+10
1991-03-06Include patchlevel.h (to ensure it is distributed with the rest).Guido van Rossum-0/+2
1991-02-19Added copyright notice.Guido van Rossum-0/+24
1990-12-20Changes for THINK C 4.0.Guido van Rossum-9/+11
Don't call inittime() and initmath(), let config_*.c decide about those.
1990-12-20"Compiling" versionGuido van Rossum-74/+321
1990-11-18Some extra DECREFs.Guido van Rossum-3/+9
1990-11-18Moved configuration-dependent initializations (etc.) to config_*.cGuido van Rossum-154/+9
1990-10-14Call asa_done() in goaway().Guido van Rossum-0/+7
1990-10-14Initial revisionGuido van Rossum-0/+297