Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Added internal routine PyString_Fini() which deletes all interned | Guido van Rossum | 1997-08-02 | 1 | -0/+18 |
| | | | | strings. For use in Py_Finalize() only. | ||||
* | 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 |
| | |||||
* | Add a simple way to enable purify; now you can set the Make variable | Guido van Rossum | 1997-08-02 | 1 | -1/+1 |
| | | | | | PURIFY (e.g. in the Setup file or on the make command line) to point to the purify command, to run purify. | ||||
* | Print ps (process status) for us when starting a new thread. | Guido van Rossum | 1997-08-02 | 1 | -9/+40 |
| | | | | | | | | | | Even less shuffling of stdout (only at start of new interpreter). Interact properly with new interpreter initialization conventions (must use Py_Initialize/Py_Finalize *and* Py_NewInterpreter/Py_EndInterpreter). Probably more minor changes. | ||||
* | Functionality enhancement: allow other threads to use Tk commands | Guido van Rossum | 1997-08-02 | 1 | -243/+211 |
| | | | | | | | | | | | | | | | | | | while one thread is blocked in mainloop(). Also, handle signals (not just interrupts) as soon as they happen. Cleanup: remove support for Tcl/Tk versions 7.4/4.0. (I've confirmed that it works for 7.5/4.1 and 7.6/4.2, as well as 8.0b2.) Coding style change: instead of ``func (args)'', write ``func(args)'' everywhere. Minor functionality change: use PyArg_ParseTuple everywhere. This should only affect the errors reported for bad argument lists; in particular, deletefilehandler() is much clearer about what's going on. (XXX Still to do: Mac and Win ports to 8.0b2.) | ||||
* | Compatibility with Tcl/Tk 8.0b*. | Guido van Rossum | 1997-08-01 | 1 | -14/+28 |
| | |||||
* | Add definitions for symbolic constants LOCK_{EX,NB,SH,UN}. | Guido van Rossum | 1997-07-31 | 1 | -0/+25 |
| | |||||
* | Extend the "Don Beaudry hack" with "Guido's corollary" -- if the base | Guido van Rossum | 1997-07-31 | 1 | -10/+27 |
| | | | | | class has a __class__ attribute, call that to create the new class. This allows us to write metaclasses purely in C! | ||||
* | Added mimify docs (Sjoerd). | Guido van Rossum | 1997-07-30 | 7 | -1/+159 |
| | |||||
* | Mention decode_base64 in example. | Guido van Rossum | 1997-07-30 | 1 | -1/+1 |
| | |||||
* | l2h target: l2htut was listed twice and l2hapi was skipped. Fixed. | Fred Drake | 1997-07-30 | 1 | -1/+1 |
| | |||||
* | Final set of CW11 projects, before switch to CW Pro 1. | Jack Jansen | 1997-07-28 | 35 | -9518/+9931 |
| | |||||
* | Finally plug the memory leak caused by syntax error (including | Guido van Rossum | 1997-07-27 | 1 | -1/+4 |
| | | | | interactive EOF, which leaked *one* byte). | ||||
* | Plugged a leak. (The same as the one plugged in compile.c -- forgot | Guido van Rossum | 1997-07-26 | 1 | -0/+1 |
| | | | | to free lnotab). | ||||
* | Moved the special compile of getbuildno.o to ../Makefile.in. | Guido van Rossum | 1997-07-25 | 1 | -8/+1 |
| | | | | | A dummy getbuildno.o (with a number of 0) still gets built here, to make the library complete. | ||||
* | Build getbuildno.o here, to adequately update it every time a new | Guido van Rossum | 1997-07-25 | 1 | -1/+15 |
| | | | | | | python executable is built. (It still won't reflect builds of the library only, but since the default make target builds the python executable, that's alright.) | ||||
* | Use Py_NewInterpreter() and friends. Remove saving/restoring of std files. | Guido van Rossum | 1997-07-25 | 1 | -22/+16 |
| | |||||
* | Plug a leak in code_dealloc() (and reordered the deallocs to match the | Guido van Rossum | 1997-07-25 | 1 | -3/+2 |
| | | | | | | order of the variables in the declarations). Also removed an entry in the TODO list that's done. | ||||
* | Tweaks by Lars Wirzenius to parse some more forms of illegal dates: | Guido van Rossum | 1997-07-25 | 1 | -2/+5 |
| | | | | | | | | the comma after the day name is optional if it is a recognized day name; and the date and month may be swapped. Thus, the following two test dates will now be parsed correctly: Thu, Feb 13 12:16:57 1992 Thu Feb 13 12:16:57 1992 | ||||
* | Added createmessage() -- Lars Wirzenius. | Guido van Rossum | 1997-07-25 | 1 | -0/+26 |
| | |||||
* | Patch by Lars Wirzenius to allow f.readline(length). | Guido van Rossum | 1997-07-25 | 1 | -1/+4 |
| | |||||
* | Bump up the version number. The date still needs to be set (Guido will | Fred Drake | 1997-07-25 | 2 | -2/+2 |
| | | | | | have to do that one!), but at least the version will match the release version. (1.5a2 got skipped for this.) | ||||
* | A couple of grammatical nits. | Fred Drake | 1997-07-24 | 2 | -130/+164 |
| | | | | | | | | | Re-sequenced the function descriptions so that the formatting is described before the assumption is made that the reader has a clue about the formatting. Moved examples to be closer to the functions being demonstrated. Added example of saferepr() result. | ||||
* | Regenerated; __assert__ becomes assert. | Guido van Rossum | 1997-07-23 | 1 | -1/+1 |
| | |||||
* | Removed some variables that are used to exchange data between import.c and | Guido van Rossum | 1997-07-21 | 3 | -14/+6 |
| | | | | | | | | importdl.c: the MAXSUFFIXSIZE macro is now defined in importdl.h, and the modules dictionary is now passed using PyImport_GetModuleDict(). Also undefine USE_SHLIB for AIX -- in AIX 4.2 and up, dlfcn.h exists but we don't want to use it. | ||||
* | 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). | ||||
* | New test for generic Makefile.pre.in | Guido van Rossum | 1997-07-19 | 4 | -0/+52 |
| | |||||
* | Added description of the extend subdirectory. | Guido van Rossum | 1997-07-19 | 1 | -0/+4 |
| | |||||
* | For use with Misc/Makefile.pre.in, the libainstall target must install | Guido van Rossum | 1997-07-19 | 1 | -0/+1 |
| | | | | Modules/python.o. | ||||
* | Adapted to the new build system. | Guido van Rossum | 1997-07-19 | 1 | -23/+10 |
| | |||||
* | Change libainstall again: need to install fewer files for "freeze"; | Guido van Rossum | 1997-07-19 | 1 | -4/+1 |
| | | | | add Setup.local to list of installed files. | ||||
* | frozenmain.c is now also in the library, | Guido van Rossum | 1997-07-19 | 2 | -6/+2 |
| | | | | with entry point Py_FrozenMain(). | ||||
* | Updated for new style build/install; much simpler! | Guido van Rossum | 1997-07-19 | 2 | -11/+14 |
| | |||||
* | Oops -- this contains frozen bytecode, but it was Python 1.4 bytecode! | Guido van Rossum | 1997-07-19 | 1 | -7/+7 |
| | |||||
* | Some improvements, e.g. -L/depot/... is not needed. | Guido van Rossum | 1997-07-19 | 1 | -8/+5 |
| | |||||
* | Added leading comment and security check. | Guido van Rossum | 1997-07-19 | 1 | -5/+28 |
| | |||||
* | Reformulate security check using getsockname(). | Guido van Rossum | 1997-07-19 | 1 | -3/+4 |
| | |||||
* | Change security policy -- only accept requests from current host. | Guido van Rossum | 1997-07-19 | 1 | -21/+9 |
| | |||||
* | Removed old signature. | Guido van Rossum | 1997-07-19 | 1 | -4/+0 |
| | |||||
* | Updated description for embed; added pysvr. | Guido van Rossum | 1997-07-19 | 1 | -1/+5 |
| | |||||
* | New example of threaded embedding | Guido van Rossum | 1997-07-19 | 4 | -0/+505 |
| | |||||
* | Updated the Makefile to work with the new build strategy. | Guido van Rossum | 1997-07-19 | 1 | -19/+18 |
| | |||||
* | Remove -s option and $PYTHONSUPPRESS environment variable. | Guido van Rossum | 1997-07-19 | 1 | -11/+0 |
| | |||||
* | Emptied (in expectation of a laundry list of what's new in 1.5). | Guido van Rossum | 1997-07-19 | 1 | -766/+0 |
| | |||||
* | Added note about libpython1.5.a. | Guido van Rossum | 1997-07-19 | 1 | -0/+3 |
| | |||||
* | Some new names. | Guido van Rossum | 1997-07-19 | 1 | -0/+5 |
| | |||||
* | Add the option to pass an open file object to GzipFile. This obviates | Guido van Rossum | 1997-07-19 | 1 | -55/+44 |
| | | | | the need for the StringIO subclass. | ||||
* | Document new 'quote' flag to cgi.escape(). | Guido van Rossum | 1997-07-19 | 2 | -6/+10 |
| |