summaryrefslogtreecommitdiff
path: root/Include/pythonrun.h
AgeCommit message (Collapse)AuthorLines
1997-08-29Declarations for two phase initialization and finalization functionsBarry Warsaw-2/+4
for the built-in module.
1997-08-22Added new Py_IsInitalized() API function to test the 'initialized' flag.Guido van Rossum-0/+1
1997-08-12Added decls for stuff from myreadline.Guido van Rossum-0/+5
1997-08-12Added prototype for various finalizers.Guido van Rossum-0/+13
1997-08-02Mass checkin (more to follow for other directories).Guido van Rossum-6/+8
Introduce truly separate (sub)interpreter objects. For now, these must be used by separate threads, created from C. See Demo/pysvr for an example of how to use this. This also rationalizes Python's initialization and finalization behavior: Py_Initialize() -- initialize the whole interpreter Py_Finalize() -- finalize the whole interpreter tstate = Py_NewInterpreter() -- create a new (sub)interpreter Py_EndInterpreter(tstate) -- delete a new (sub)interpreter There are also new interfaces relating to threads and the interpreter lock, which can be used to create new threads, and sometimes have to be used to manipulate the interpreter lock when creating or deleting sub-interpreters. These are only defined when WITH_THREAD is defined: PyEval_AcquireLock() -- acquire the interpreter lock PyEval_ReleaseLock() -- release the interpreter lock PyEval_AcquireThread(tstate) -- acquire the lock and make the thread current PyEval_ReleaseThread(tstate) -- release the lock and make NULL current Other administrative changes: - The header file bltinmodule.h is deleted. - The init functions for Import, Sys and Builtin are now internal and declared in pythonrun.h. - Py_Setup() and Py_Cleanup() are no longer declared. - The interpreter state and thread state structures are now linked together in a chain (the chain of interpreters is a static variable in pythonrun.c). - Some members of the interpreter and thread structures have new, shorter, more consistent, names. - Added declarations for _PyImport_{Find,Fixup}Extension() to import.h.
1997-07-19Added declarations for Py_{Set,Get}ProgramName() and a bunch of otherGuido van Rossum-0/+17
Py_Get*() functions.
1997-02-14Added decl for Py_FdIsInteractive.Guido van Rossum-0/+2
1996-10-25New permission notice, includes CNRI.Guido van Rossum-12/+19
1996-05-22Don't declare Py_FatalError.Guido van Rossum-1/+2
Add Py_mport_Init and PyBuiltin_Init.
1995-02-17add Py_FatalErrorGuido van Rossum-0/+2
1995-02-07added callable, removed run_pyc_fileGuido van Rossum-1/+0
1995-01-17new names for lots of new functionsGuido van Rossum-1/+1
1995-01-12The great renaming, phase two: all header files have been updated toGuido van Rossum-16/+16
use the new names exclusively, and the linker will see the new names. Files that import "Python.h" also only see the new names. Files that import "allobjects.h" will continue to be able to use the old names, due to the inclusion (in allobjects.h) of "rename2.h".
1995-01-04Added 1995 copyright.Guido van Rossum-2/+2
object.h: made sizes and refcnts signed ints. stringobject.h: make getstrsize() signed int. methodobject.h: add METH_VARARGS and METH_FREENAME flag bit definitions.
1994-09-14pythonrun.h: added run_pyc_fileGuido van Rossum-0/+1
ceval.h: added Py_AddPendingCall rest: modules using the new naming scheme must now include Python.h
1994-09-07pythgonrun.h: added Py_AtExit().Guido van Rossum-0/+2
rename1.h: add PyArg_GetInt.
1994-08-01Merge alpha100 branch back to main trunkGuido van Rossum-3/+5
1993-11-01* ceval.c, longobject.c, methodobject.c, listnode.c, arraymodule.c,Guido van Rossum-4/+0
pythonrun.c: added static forward declarations * pythonrun.h, ceval.h, longobject.h, node.h: removed declarations of static routines
1993-07-28* Added support for X11 modules.Guido van Rossum-0/+11
* Makefile: change location of FORMS library. * posixmodule.c: turn #if 0 into #ifdef MSDOS (stuff in unistd.h or not) * Almost all .h files: added CPP magic to avoid duplicate inclusions and to support inclusion from C++.
1993-06-17* Added gmtime/localtime/mktime and SYSV timezone globals to timemodule.c.Guido van Rossum-0/+1
Added $(SYSDEF) to its build rule in Makefile. * cgensupport.[ch], modsupport.[ch]: removed some old stuff. Also changed files that still used it... And made several things static that weren't but should have been... And other minor cleanups... * listobject.[ch]: add external interfaces {set,get}listslice * socketmodule.c: fix bugs in new send() argument parsing. * sunaudiodevmodule.c: added flush() and close().
1993-03-30* Fixed some subtleties with fastlocals. You can no longer accessGuido van Rossum-0/+2
f_fastlocals in a traceback object (this is a core dump hazard if there are <nil> entries), but instead eval_code() merges the fast locals back into the locals dictionary if it looks like the local variables will be retained. Also, the merge routines save exceptions since this is sometimes needed (alas!). * Added id() to bltinmodule.c, which returns an object's address (identity). Useful to walk arbitrary data structures containing cycles. * Added compile() to bltinmodule.c and compile_string() to pythonrun.[ch]: support to exec/eval arbitrary code objects. The code that defaults globals and locals is moved from run_node in pythonrun.c (which is now identical to eval_node) to eval_code in ceval.c. [XXX For elegance a clean-up session is necessary.]
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-04-05Copyright for 1992 addedGuido van Rossum-1/+1
1991-02-19Added copyright notice.Guido van Rossum-0/+24
1990-12-20"Compiling" versionGuido van Rossum-0/+23