Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Added prototype for PyImport_Import(). | Guido van Rossum | 1997-08-14 | 1 | -0/+1 |
| | |||||
* | cPickle release 0.3 from Jim Fulton | Guido van Rossum | 1997-08-13 | 1 | -6/+25 |
| | |||||
* | Added decls for stuff from myreadline. | Guido van Rossum | 1997-08-12 | 1 | -0/+5 |
| | |||||
* | Added prototype for various finalizers. | Guido van Rossum | 1997-08-12 | 1 | -0/+13 |
| | |||||
* | Added prototype for PyGrammar_RemoveAccelerators(). | Guido van Rossum | 1997-08-12 | 1 | -0/+1 |
| | |||||
* | Bump MS_DLL_ID to 1.5.0. | Guido van Rossum | 1997-08-12 | 1 | -1/+1 |
| | |||||
* | Add a cast to the call to _Py_Dealloc in the expanded version of | Guido van Rossum | 1997-08-05 | 1 | -2/+2 |
| | | | | | | Py_DECREF, to reduce the warnings when compiling with reference count debugging on. (There are still warnings for each call to _Py_NewReference -- too bad.) | ||||
* | Added Py_Malloc and friends as well as PyMem_Malloc and friends. | Guido van Rossum | 1997-08-05 | 1 | -2/+19 |
| | |||||
* | Mass checkin (more to follow for other directories). | Guido van Rossum | 1997-08-02 | 7 | -98/+27 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | Add cast to PyInt_AS_LONG macro, as suggested by Marc Lemburg. | Guido van Rossum | 1997-08-02 | 1 | -1/+1 |
| | |||||
* | Add cast to PyFloat_AS_DOUBLE macro, as suggested by Marc Lemburg. | Guido van Rossum | 1997-08-02 | 1 | -1/+1 |
| | |||||
* | Changed the patch level to 1.5a3, to avoid confusion with a2 (I'm not | Guido van Rossum | 1997-07-19 | 1 | -1/+1 |
| | | | | ready for a release yet). | ||||
* | Added declarations for Py_{Set,Get}ProgramName() and a bunch of other | Guido van Rossum | 1997-07-19 | 1 | -0/+17 |
| | | | | Py_Get*() functions. | ||||
* | Added decl for PyInt_GetMax(). | Guido van Rossum | 1997-07-19 | 1 | -0/+1 |
| | |||||
* | Moved PyEval_InitThreads to inside WITH_THREAD, where it belongs. | Guido van Rossum | 1997-07-19 | 1 | -1/+1 |
| | |||||
* | Got rid of "suppres printing" flag. | Guido van Rossum | 1997-07-19 | 1 | -1/+0 |
| | |||||
* | Include pystate.h earlier so it can be referenced by ceval.h. | Guido van Rossum | 1997-07-18 | 1 | -2/+2 |
| | |||||
* | PyEval_SaveThread() and PyEval_RestoreThread() now return/take a | Guido van Rossum | 1997-07-18 | 1 | -3/+6 |
| | | | | | | | | | | | | | | | | PyThreadState pointer instead of a (frame) PyObject pointer. This makes much more sense. It is backward incompatible, but that's no problem, because (a) the heaviest users are the Py_{BEGIN,END}_ ALLOW_THREADS macros here, which have been fixed too; (b) there are very few direct users; (c) those who use it are there will probably appreciate the change. Also, added new functions PyEval_AcquireThread() and PyEval_ReleaseThread() which allows the threads created by the thread module as well threads created by others (!) to set/reset the current thread, and at the same time acquire/release the interpreter lock. Much saner. | ||||
* | Only add 1 byte to all malloc calls when it is known that malloc(0) or | Guido van Rossum | 1997-07-10 | 1 | -3/+11 |
| | | | | | realloc(p, 0) returns NULL. See changes to configure script to be checked in later. | ||||
* | flushline and writestring can now return an error | Guido van Rossum | 1997-05-22 | 2 | -2/+2 |
| | |||||
* | Added Py_PROTO macros for SunOS 4.x /bin/cc. | Guido van Rossum | 1997-05-20 | 1 | -6/+6 |
| | |||||
* | Workaround for bug in Metrowerks MSL headers on 68K Macs (Jack) | Guido van Rossum | 1997-05-20 | 1 | -0/+47 |
| | |||||
* | Oops, another forgotten renaming: varobject -> PyVarObject. | Guido van Rossum | 1997-05-15 | 3 | -4/+5 |
| | |||||
* | Bump level to 1.5a2. | Guido van Rossum | 1997-05-14 | 1 | -1/+1 |
| | |||||
* | Subsumed mappingobject.h in dictobject.h. | Guido van Rossum | 1997-05-13 | 3 | -68/+22 |
| | |||||
* | Get rid of obsolete ACCESS_MODE opcode. | Guido van Rossum | 1997-05-09 | 1 | -1/+0 |
| | |||||
* | Oops, rename2.h was included by some other headers. | Guido van Rossum | 1997-05-07 | 2 | -7/+0 |
| | |||||
* | Instead of importing graminit.h whenever one of the three grammar 'root' | Guido van Rossum | 1997-05-07 | 1 | -0/+6 |
| | | | | symbols is needed, define these in Python.h with a Py_ prefix. | ||||
* | Checkin of Jack's buffer mods. | Guido van Rossum | 1997-05-05 | 1 | -1/+13 |
| | | | | Not really checked, but didn't fail any tests either... | ||||
* | Massive changes for separate thread state management. | Guido van Rossum | 1997-05-05 | 5 | -1/+157 |
| | | | | | All per-thread globals are moved into a struct which is manipulated separately. | ||||
* | Remove sys_* defines that are internal only and about to disappear | Guido van Rossum | 1997-05-05 | 1 | -3/+0 |
| | |||||
* | Finally deleted this obsolete crud. | Guido van Rossum | 1997-05-02 | 1 | -79/+0 |
| | |||||
* | Several oopsies -- Py_ALLOBJECTS_H -> Py_PYTHON_H, temporarily removed | Guido van Rossum | 1997-05-02 | 1 | -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 Rossum | 1997-05-02 | 2 | -121/+116 |
| | | | | | allobjects.h disappears -- old-style extensions must include Python.h and rename2.h. | ||||
* | Renamed inittab. | Guido van Rossum | 1997-04-29 | 1 | -1/+1 |
| | |||||
* | Added new name for inittab! | Guido van Rossum | 1997-04-29 | 1 | -0/+1 |
| | |||||
* | Remove macros that are only used for cgensupport.[ch]. | Guido van Rossum | 1997-04-29 | 1 | -14/+2 |
| | | | | Fixed typo in PyArg_VaParse (not PyArgs_*). | ||||
* | Moved cgensupport.h to Modules (awaiting oblivion). | Guido van Rossum | 1997-04-29 | 1 | -94/+0 |
| | |||||
* | Moved rename2's macros relevant to this module here and added comment | Guido van Rossum | 1997-04-29 | 1 | -0/+15 |
| | | | | about the file's obsolescence. | ||||
* | Got rid of the static decl of PyCObject_Import, which was a 1.4 | Guido van Rossum | 1997-04-09 | 1 | -19/+4 |
| | | | | compatibility hack. | ||||
* | Changed the way the C API was exported. Jim Fulton. | Guido van Rossum | 1997-04-09 | 1 | -39/+47 |
| | |||||
* | Added assert grammar. | Guido van Rossum | 1997-04-02 | 1 | -32/+33 |
| | |||||
* | Added AssertionError. | Guido van Rossum | 1997-04-02 | 1 | -0/+1 |
| | |||||
* | Remove ConflictError (which was also removed from bltinmodule.c, even | Guido van Rossum | 1997-03-31 | 1 | -1/+0 |
| | | | | though the checkin message failed to note that). | ||||
* | Remove err_input -- there is no such global! | Guido van Rossum | 1997-03-14 | 1 | -1/+0 |
| | |||||
* | Remove redundant references to thread stuff -- long, long ago, there | Guido van Rossum | 1997-03-14 | 1 | -6/+0 |
| | | | | was some locking code in this file that needed it... | ||||
* | Add Macros defining new names for all external symbols. | Guido van Rossum | 1997-03-14 | 2 | -0/+36 |
| | |||||
* | Change PyFPE_END_PROTECT to PyFPE_END_PROTECT(v). v should be the | Guido van Rossum | 1997-03-14 | 1 | -3/+3 |
| | | | | | | last variable to which a floating point expression is assigned. The macro passes its address to a dummy function so that the optimizer can't delay calculating its value until after the macro. | ||||
* | A few comment alignment and clarifications. | Guido van Rossum | 1997-03-04 | 1 | -3/+5 |
| | |||||
* | Add global Py_OptimizeFlag. | Guido van Rossum | 1997-03-03 | 1 | -0/+1 |
| |