summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
Commit message (Collapse)AuthorAgeFilesLines
* PyErr_Print(): Use PyErr_GivenExceptionMatches() instead of pointerBarry Warsaw1997-08-261-2/+4
| | | | compares to test for SystemExit and SyntaxError.
* Added new Py_IsInitalized() API function to test the 'initialized' flag.Guido van Rossum1997-08-221-0/+8
|
* Use a counter instead of a Boolean to check for initialized; n callsGuido van Rossum1997-08-201-5/+5
| | | | to Py_Initialize will be undone by n calls to Py_Uninitialize.
* Merge Py_Cleanup() into Py_Finalize(). Call the various small Fini()Guido van Rossum1997-08-051-36/+43
| | | | functions.
* The last of the mass checkins for separate (sub)interpreters.Guido van Rossum1997-08-021-59/+193
| | | | | | | Everything should now work again. See the comments for the .h files mass checkin (e.g. pystate.h) for more detail.
* Moved some stuff here from main.c (part of a big restructuring - waitGuido van Rossum1997-07-191-1/+26
| | | | | | | | | | | | | for more!). - The global flags that can be set from environment variables are now set in Py_Initialize (except the silly Py_SuppressPrint, which no longer exists). This saves duplicate code in frozenmain.c and main.c. - Py_GetProgramName() is now here; added Py_SetProgramName(). An embedding program should no longer provide Py_GetProgramName(), instead it should call Py_SetProgramName() *before* calling Py_Initialize().
* Can't return 0 from void function...Guido van Rossum1997-05-231-1/+1
|
* Py_FlushLine and PyFile_WriteString now return error indicatorsGuido van Rossum1997-05-221-30/+41
| | | | instead of calling PyErr_Clear(). Add checking of those errors.
* Added a space in an error messageGuido van Rossum1997-05-221-1/+1
|
* Instead of importing graminit.h whenever one of the three grammar 'root'Guido van Rossum1997-05-071-4/+3
| | | | symbols is needed, define these in Python.h with a Py_ prefix.
* Keep MS compiler happy: use (int)strlen() when comparing; make sureGuido van Rossum1997-05-061-2/+8
| | | | not to use kill().
* Massive changes for separate thread state management.Guido van Rossum1997-05-051-8/+42
| | | | | All per-thread globals are moved into a struct which is manipulated separately.
* Allow passing a .pyo file.Guido van Rossum1997-04-021-5/+8
| | | | Print correct name in fatal error from PyErr_Print.
* Greatly renamed. Not a very thorough job -- I'm going to restructureGuido van Rossum1997-03-051-210/+211
| | | | it anyway.
* Added new global flag variable Py_InteractiveFlag and new functionGuido van Rossum1997-02-141-1/+22
| | | | | | | Py_FdIsInteractive(). The flag is supposed to be set by the -i command line option. The function is supposed to be called instead of isatty(). This is used for Lee Busby's wish #1, to have an option that pretends stdin is interactive even when it really isn't.
* Keep gcc -Wall happy.Guido van Rossum1996-12-051-0/+4
|
* New permission notice, includes CNRI.Guido van Rossum1996-10-251-13/+20
|
* Rationalized MS ifdefsGuido van Rossum1996-09-111-2/+2
|
* rename printrefs, getobjects to _Py_ prefixGuido van Rossum1996-05-241-1/+1
|
* Use new names for debug macros. Don't include pythonrun.h.Guido van Rossum1996-05-221-6/+5
|
* Add'l change for NT (Mark H.).Guido van Rossum1996-04-091-0/+1
|
* Moved mac-specific exit handling to macmain.cJack Jansen1995-10-271-21/+4
|
* keep exitfunc alive while calling itGuido van Rossum1995-10-071-0/+2
|
* #undef argument, for the MacGuido van Rossum1995-09-181-0/+1
|
* mac CW-only fix for messy windows upon exitJack Jansen1995-07-291-1/+1
|
* keyword arguments and faster callsGuido van Rossum1995-07-181-10/+3
|
* flush stdout before writing to stderr in print_error()Guido van Rossum1995-03-301-0/+1
|
* fix dusty debugging macrosGuido van Rossum1995-03-291-2/+2
|
* In NT, write fatal() msg to debugging deviceGuido van Rossum1995-03-141-0/+10
|
* mac changes:Jack Jansen1995-02-131-0/+8
| | | | | | - Assume files of types 'PYC ' and 'APPL' are compiled python code - For mwerks, show status line when program has terminated while keeping window open.
* print class name for exceptions that are classesGuido van Rossum1995-02-071-2/+14
|
* Under CodeWarrior, make the window go away on exit(0)Jack Jansen1995-02-021-0/+11
|
* Think C mod to suppress pausing at normal exitGuido van Rossum1995-01-301-0/+8
|
* make call_pyc_file staticGuido van Rossum1995-01-261-1/+4
|
* use getbuiltins() everywhere, it defaults to getbuiltidict()Guido van Rossum1995-01-121-1/+1
|
* __builtins__ mods (and sys_checkinterval for ceval.c)Guido van Rossum1995-01-091-0/+20
|
* Added 1995 to copyright message.Guido van Rossum1995-01-041-5/+6
| | | | | | 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().
* Lots of changes, most minor (fatal() instead of abort(), use ofGuido van Rossum1995-01-021-8/+7
| | | | | | err_fetch/err_restore and so on). But... NOTE: import.c has been rewritten and all the DL stuff is now in the new file importdl.c.
* Removed extraneous fclose() in case of .pyc file argumentJack Jansen1994-12-141-1/+1
|
* * Python/pythonrun.c: add string "Python" to fatal error messageGuido van Rossum1994-09-291-1/+1
|
* * Python/pythonrun.c (print_error): print only last line ofGuido van Rossum1994-09-191-0/+12
| | | | multi-line source line
* * Import/pythonrun.h, Python/{import,pythonrun}.c,Guido van Rossum1994-09-141-1/+47
| | | | | | mac/macsetfiletype.c: changes by Jack to execute .pyc file passed as command line argument. On the Mac .pyc files are given a special type so they can be double-clicked
* added Py_AtExit() -- register cleanup functions for C modulesGuido van Rossum1994-09-071-0/+16
|
* * Python/pythonrun.c (print_error): added INCREF/DECREF pair --Guido van Rossum1994-08-291-82/+170
| | | | | | the exception returned by a syntax error (when reported) would contain an object with refcnt zero! MPW changes
* * 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.
* * ceval.c, longobject.c, methodobject.c, listnode.c, arraymodule.c,Guido van Rossum1993-11-011-1/+8
| | | | | | pythonrun.c: added static forward declarations * pythonrun.h, ceval.h, longobject.h, node.h: removed declarations of static routines
* * Extended X interface: pixmap objects, colormap objects visual objects,Sjoerd Mullender1993-10-111-0/+8
| | | | | | | | image objects, and lots of new methods. * Added counting of allocations and deallocations of builtin types if COUNT_ALLOCS is defined. Had to move calls to NEWREF down in some files. * Bug fix in sorting lists.
* * Makefile: added all: and default: targets.Guido van Rossum1993-07-051-6/+6
| | | | | | | | | | | | * many files: made some functions static; removed "extern int errno;". * frozenmain.c: fixed bugs introduced on 24 June... * flmodule.c: remove 1.5 bw compat hacks, add new functions in 2.2a (and some old functions that were omitted). * timemodule.c: added MSDOS floatsleep version . * pgenmain.c: changed exit() to goaway() and added defn of goaway(). * intrcheck.c: add hack (to UNIX only) so interrupting 3 times will exit from a hanging program. The second interrupt prints a message explaining this to the user.
* Access checks now work, at least for instance data (not for methodsGuido van Rossum1993-05-201-1/+1
| | | | | | | yet). The class is now passed to eval_code and stored in the current frame. It is also stored in instance method objects. An "unbound" instance method is now returned when a function is retrieved through "classname.funcname", which when called passes the class to eval_code.
* * pythonrun.c: Print exception type+arg *after* stack trace instead ofGuido van Rossum1993-05-121-1/+1
| | | | | | | before it. * ceval.c, object.c: moved testbool() to object.c (now extern visible) * stringobject.c: fix bugs in and rationalize string resize in formatstring() * tokenizer.[ch]: fix non-working code for lines longer than BUFSIZ