Commit Graph

6297 Commits

Author SHA1 Message Date
Fred Drake 12d9eac0a2 A couple of grammatical nits.
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.
1997-07-24 15:39:16 +00:00
Guido van Rossum ed57d7663e Regenerated; __assert__ becomes assert. 1997-07-23 18:10:52 +00:00
Guido van Rossum ef3d02ebb9 Removed some variables that are used to exchange data between import.c and
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.
1997-07-21 14:54:36 +00:00
Guido van Rossum 766118525a Changed the patch level to 1.5a3, to avoid confusion with a2 (I'm not
ready for a release yet).
1997-07-19 23:46:59 +00:00
Guido van Rossum 661aebcbde New test for generic Makefile.pre.in 1997-07-19 23:14:13 +00:00
Guido van Rossum a955967a5b Added description of the extend subdirectory. 1997-07-19 23:13:10 +00:00
Guido van Rossum 895e1052e3 For use with Misc/Makefile.pre.in, the libainstall target must install
Modules/python.o.
1997-07-19 22:53:39 +00:00
Guido van Rossum bef03ae032 Adapted to the new build system. 1997-07-19 22:52:43 +00:00
Guido van Rossum ded2e207f4 Change libainstall again: need to install fewer files for "freeze";
add Setup.local to list of installed files.
1997-07-19 22:00:45 +00:00
Guido van Rossum a94145118a frozenmain.c is now also in the library,
with entry point Py_FrozenMain().
1997-07-19 21:59:47 +00:00
Guido van Rossum b3afce5763 Updated for new style build/install; much simpler! 1997-07-19 21:58:30 +00:00
Guido van Rossum 019db5d73e Oops -- this contains frozen bytecode, but it was Python 1.4 bytecode! 1997-07-19 21:54:24 +00:00
Guido van Rossum a88446aa4a Some improvements, e.g. -L/depot/... is not needed. 1997-07-19 21:34:11 +00:00
Guido van Rossum e0c6901369 Added leading comment and security check. 1997-07-19 21:33:10 +00:00
Guido van Rossum 42ded89c08 Reformulate security check using getsockname(). 1997-07-19 21:29:28 +00:00
Guido van Rossum eca991df27 Change security policy -- only accept requests from current host. 1997-07-19 21:13:53 +00:00
Guido van Rossum d1bef00f66 Removed old signature. 1997-07-19 21:02:32 +00:00
Guido van Rossum 14b0e700a0 Updated description for embed; added pysvr. 1997-07-19 21:02:08 +00:00
Guido van Rossum 5c8b991175 New example of threaded embedding 1997-07-19 21:00:47 +00:00
Guido van Rossum 6e614e3d2a Updated the Makefile to work with the new build strategy. 1997-07-19 20:58:50 +00:00
Guido van Rossum 8aea8d9600 Remove -s option and $PYTHONSUPPRESS environment variable. 1997-07-19 20:46:22 +00:00
Guido van Rossum 5624abd086 Emptied (in expectation of a laundry list of what's new in 1.5). 1997-07-19 20:45:30 +00:00
Guido van Rossum ecd3b153d5 Added note about libpython1.5.a. 1997-07-19 20:44:33 +00:00
Guido van Rossum 132cd063f5 Some new names. 1997-07-19 20:44:09 +00:00
Guido van Rossum 68de37973f Add the option to pass an open file object to GzipFile. This obviates
the need for the StringIO subclass.
1997-07-19 20:22:23 +00:00
Guido van Rossum 6576dd6ad6 Document new 'quote' flag to cgi.escape(). 1997-07-19 20:16:07 +00:00
Guido van Rossum 64c6620934 Add optional 'quote' flag argument to escape(); if true, translate '"'
to '"'.
1997-07-19 20:11:53 +00:00
Guido van Rossum 1e8c8a20f2 New dialog routines (Fred Lundh) 1997-07-19 20:02:36 +00:00
Guido van Rossum 65c78e18b5 Use dictionary's update() method in _cnfmerge(). 1997-07-19 20:02:04 +00:00
Guido van Rossum 7a337c1c79 Removed Py_SuppressPrintingFlag flag; added new
PyEval_{Acquire,Release}Thread() calls.
1997-07-19 19:59:06 +00:00
Guido van Rossum 496f8f632b Removed remaining support for Tk versions below 4.0. 1997-07-19 19:57:42 +00:00
Guido van Rossum 9cc8a20cd2 Moved PyEval_{Acquire,Release}Thread() to within the same #ifdef
WITH_THREAD as PyEval_InitThreads().

Removed use of Py_SuppressPrintingFlag.
1997-07-19 19:55:50 +00:00
Guido van Rossum 4c125700d1 Adapted to new build procedure (hopefully correct -- can't test it!). 1997-07-19 19:54:25 +00:00
Guido van Rossum 534ac094f9 Removed a bunch of extern declarations of functions that are now
properly declared in Python.h.
1997-07-19 19:51:43 +00:00
Guido van Rossum 57d8e3f1c7 Added declarations for Py_{Set,Get}ProgramName() and a bunch of other
Py_Get*() functions.
1997-07-19 19:50:52 +00:00
Guido van Rossum 5617f32c5c Added decl for PyInt_GetMax(). 1997-07-19 19:49:11 +00:00
Guido van Rossum 8fb26ede51 Make it return a _const_ char*. 1997-07-19 19:48:41 +00:00
Guido van Rossum f6ca6aa869 New build procedure. 1997-07-19 19:39:57 +00:00
Guido van Rossum 914fbd9ae6 New build procedure, using a single library libpython$(VERSION) at
this level.

The old libraries Modules/libModules.a etc. don't exist any more.

The libainstall target is updated to match.
1997-07-19 19:38:43 +00:00
Guido van Rossum 1fd74a713d The usual 1997-07-19 19:36:02 +00:00
Guido van Rossum 642b67809e Set $VERSION here (fixed to 1.5).
Remove some unneeded AC_SUBST() calls.
1997-07-19 19:35:41 +00:00
Guido van Rossum a847889607 Moved PyEval_InitThreads to inside WITH_THREAD, where it belongs. 1997-07-19 19:27:30 +00:00
Guido van Rossum e6fb2043ce Got rid of "suppres printing" flag. 1997-07-19 19:26:38 +00:00
Guido van Rossum 4c04be64b3 This is now the "real" main program -- it calls Py_Main(argc, argv)
which is in the library and does all the work.
1997-07-19 19:25:33 +00:00
Guido van Rossum 3768fb1097 Tracking changes to Py_Main():
- Got rid of inspection of some environment variables.

- Got rid of Py_GetProgramName() and related logic.

- Print the version header *after* successful initialization.
1997-07-19 19:24:41 +00:00
Guido van Rossum ed52aacb33 This is no longer the real main program; it now defines Py_Main(), so
it can be placed in the library.

Other, related changes:

- Moved the inspection of some environment variables to
Py_Initialize().

- Got rid of -s option.

- Moved Py_GetProgramName() and related logic to pythonrun.c; call
Py_SetProgramName() instead.

- Print the version header *after* successful initialization.
1997-07-19 19:20:32 +00:00
Guido van Rossum ad6dfda9af Moved some stuff here from main.c (part of a big restructuring - wait
for more!).

- The global flags that can be set from environment variables are now
set in Py_Initialize (except the silly Py_SuppressPrint, which no
longer exists).  This saves duplicate code in frozenmain.c and main.c.

- Py_GetProgramName() is now here; added Py_SetProgramName().  An
embedding program should no longer provide Py_GetProgramName(),
instead it should call Py_SetProgramName() *before* calling
Py_Initialize().
1997-07-19 19:17:22 +00:00
Guido van Rossum 0c88e1fd96 Remove confusing usage comments at end. 1997-07-19 00:02:22 +00:00
Guido van Rossum 618af4b3ef Include pystate.h earlier so it can be referenced by ceval.h. 1997-07-18 23:59:26 +00:00
Guido van Rossum 75aa0d6abe Use the new functions PyEval_AcquireThread() and
PyEval_ReleaseThread() (in ceval.c) to set/reset the current thread,
and at the same time acquire/release the interpreter lock.

Much saner.
1997-07-18 23:57:50 +00:00