summaryrefslogtreecommitdiffstats
path: root/Include/Python.h
Commit message (Collapse)AuthorAgeFilesLines
* Mass checkin (more to follow for other directories).Guido van Rossum1997-08-021-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Include pystate.h earlier so it can be referenced by ceval.h.Guido van Rossum1997-07-181-2/+2
|
* Subsumed mappingobject.h in dictobject.h.Guido van Rossum1997-05-131-1/+1
|
* Instead of importing graminit.h whenever one of the three grammar 'root'Guido van Rossum1997-05-071-0/+6
| | | | symbols is needed, define these in Python.h with a Py_ prefix.
* Massive changes for separate thread state management.Guido van Rossum1997-05-051-0/+2
| | | | | All per-thread globals are moved into a struct which is manipulated separately.
* Several oopsies -- Py_ALLOBJECTS_H -> Py_PYTHON_H, temporarily removedGuido van Rossum1997-05-021-6/+3
| | | | | pystate.h (to be restored later when that code is debugged), removed accessobject.h.
* Moved allobjects.h to Python.h (without rename2.h).Guido van Rossum1997-05-021-3/+116
| | | | | allobjects.h disappears -- old-style extensions must include Python.h and rename2.h.
* The great renaming, phase two: all header files have been updated toGuido van Rossum1995-01-121-1/+1
| | | | | | | 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".
* pythonrun.h: added run_pyc_fileGuido van Rossum1994-09-141-0/+3
ceval.h: added Py_AddPendingCall rest: modules using the new naming scheme must now include Python.h