summaryrefslogtreecommitdiffstats
path: root/Include
Commit message (Collapse)AuthorAgeFilesLines
* Use K&R function prototypes.Guido van Rossum1997-10-071-7/+12
|
* Removed special Windows defines, at Mark Hammond's request.Guido van Rossum1997-09-291-8/+4
|
* New API PyErr_NewException(name, base, dict) to create simple new exceptions.Guido van Rossum1997-09-161-0/+4
|
* [Py_Exc]NumberError => [Py_Exc]ArithmeticErrorBarry Warsaw1997-09-161-1/+1
|
* Introduce PyExc_Exception as the conceptual root class for all exceptions.Guido van Rossum1997-09-161-0/+1
|
* Set it to 1.5a4, now we have dotted-name import...Guido van Rossum1997-09-081-1/+1
|
* #Added prototype for PyObject_HasAttr() -- must've been an oversight.Guido van Rossum1997-09-061-0/+1
|
* Fix in trailing comment: PyDict_SetItemString() does *not* consume a referenceFred Drake1997-09-051-3/+2
| | | | count, PyList_SetItem() does. Very confusing!
* Added PyImport_ImportModuleEx(name, globals, locals, fromlist); thisGuido van Rossum1997-09-051-0/+2
| | | | | | is like PyImport_ImporModule(name) but receives the globals and locals dict and the fromlist arguments as well. (The name is a char*; the others are PyObject*s).
* Inline PyObject_CallObject (Marc-Andre Lemburg).Guido van Rossum1997-08-301-1/+4
|
* Added NoSite flag.Guido van Rossum1997-08-291-0/+1
|
* Added extern definition for -X flag variable.Barry Warsaw1997-08-291-0/+1
|
* Declarations for two phase initialization and finalization functionsBarry Warsaw1997-08-291-2/+4
| | | | for the built-in module.
* Added externs for three new exceptions PyExc_StandardError,Barry Warsaw1997-08-291-1/+7
| | | | | | | PyExc_NumberError, and PyExc_LookupError. Also added extern for pre-instantiated exception instance PyExc_MemoryErrorInst. Removed extern of obsolete exception PyExc_AccessError.
* Three new C API functions:Barry Warsaw1997-08-221-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | - int PyErr_GivenExceptionMatches(obj1, obj2) Returns 1 if obj1 and obj2 are the same object, or if obj1 is an instance of type obj2, or of a class derived from obj2 - int PyErr_ExceptionMatches(obj) Higher level wrapper around PyErr_GivenExceptionMatches() which uses PyErr_Occurred() as obj1. This will be the more commonly called function. - void PyErr_NormalizeException(typeptr, valptr, tbptr) Normalizes exceptions, and places the normalized values in the arguments. If type is not a class, this does nothing. If type is a class, then it makes sure that value is an instance of the class by: 1. if instance is of the type, or a class derived from type, it does nothing. 2. otherwise it instantiates the class, using the value as an argument. If value is None, it uses an empty arg tuple, and if the value is a tuple, it uses just that.
* Added new Py_IsInitalized() API function to test the 'initialized' flag.Guido van Rossum1997-08-221-0/+1
|
* Completely disable the declarations for malloc() and friends. UseGuido van Rossum1997-08-211-2/+3
| | | | | #ifdef though, so if you still need these for a really backwards compiler you know what to do.
* Moved assert.h to ../Parser directoryGuido van Rossum1997-08-191-49/+0
|
* Added prototype for PyImport_Import().Guido van Rossum1997-08-141-0/+1
|
* cPickle release 0.3 from Jim FultonGuido van Rossum1997-08-131-6/+25
|
* Added decls for stuff from myreadline.Guido van Rossum1997-08-121-0/+5
|
* Added prototype for various finalizers.Guido van Rossum1997-08-121-0/+13
|
* Added prototype for PyGrammar_RemoveAccelerators().Guido van Rossum1997-08-121-0/+1
|
* Bump MS_DLL_ID to 1.5.0.Guido van Rossum1997-08-121-1/+1
|
* Add a cast to the call to _Py_Dealloc in the expanded version ofGuido van Rossum1997-08-051-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 Rossum1997-08-051-2/+19
|
* Mass checkin (more to follow for other directories).Guido van Rossum1997-08-027-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 Rossum1997-08-021-1/+1
|
* Add cast to PyFloat_AS_DOUBLE macro, as suggested by Marc Lemburg.Guido van Rossum1997-08-021-1/+1
|
* Changed the patch level to 1.5a3, to avoid confusion with a2 (I'm notGuido van Rossum1997-07-191-1/+1
| | | | ready for a release yet).
* Added declarations for Py_{Set,Get}ProgramName() and a bunch of otherGuido van Rossum1997-07-191-0/+17
| | | | Py_Get*() functions.
* Added decl for PyInt_GetMax().Guido van Rossum1997-07-191-0/+1
|
* Moved PyEval_InitThreads to inside WITH_THREAD, where it belongs.Guido van Rossum1997-07-191-1/+1
|
* Got rid of "suppres printing" flag.Guido van Rossum1997-07-191-1/+0
|
* Include pystate.h earlier so it can be referenced by ceval.h.Guido van Rossum1997-07-181-2/+2
|
* PyEval_SaveThread() and PyEval_RestoreThread() now return/take aGuido van Rossum1997-07-181-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) orGuido van Rossum1997-07-101-3/+11
| | | | | realloc(p, 0) returns NULL. See changes to configure script to be checked in later.
* flushline and writestring can now return an errorGuido van Rossum1997-05-222-2/+2
|
* Added Py_PROTO macros for SunOS 4.x /bin/cc.Guido van Rossum1997-05-201-6/+6
|
* Workaround for bug in Metrowerks MSL headers on 68K Macs (Jack)Guido van Rossum1997-05-201-0/+47
|
* Oops, another forgotten renaming: varobject -> PyVarObject.Guido van Rossum1997-05-153-4/+5
|
* Bump level to 1.5a2.Guido van Rossum1997-05-141-1/+1
|
* Subsumed mappingobject.h in dictobject.h.Guido van Rossum1997-05-133-68/+22
|
* Get rid of obsolete ACCESS_MODE opcode.Guido van Rossum1997-05-091-1/+0
|
* Oops, rename2.h was included by some other headers.Guido van Rossum1997-05-072-7/+0
|
* 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.
* Checkin of Jack's buffer mods.Guido van Rossum1997-05-051-1/+13
| | | | Not really checked, but didn't fail any tests either...
* Massive changes for separate thread state management.Guido van Rossum1997-05-055-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 disappearGuido van Rossum1997-05-051-3/+0
|
* Finally deleted this obsolete crud.Guido van Rossum1997-05-021-79/+0
|