]> granicus.if.org Git - python/log
python
27 years agoReformulate security check using getsockname().
Guido van Rossum [Sat, 19 Jul 1997 21:29:28 +0000 (21:29 +0000)]
Reformulate security check using getsockname().

27 years agoChange security policy -- only accept requests from current host.
Guido van Rossum [Sat, 19 Jul 1997 21:13:53 +0000 (21:13 +0000)]
Change security policy -- only accept requests from current host.

27 years agoRemoved old signature.
Guido van Rossum [Sat, 19 Jul 1997 21:02:32 +0000 (21:02 +0000)]
Removed old signature.

27 years agoUpdated description for embed; added pysvr.
Guido van Rossum [Sat, 19 Jul 1997 21:02:08 +0000 (21:02 +0000)]
Updated description for embed; added pysvr.

27 years agoNew example of threaded embedding
Guido van Rossum [Sat, 19 Jul 1997 21:00:47 +0000 (21:00 +0000)]
New example of threaded embedding

27 years agoUpdated the Makefile to work with the new build strategy.
Guido van Rossum [Sat, 19 Jul 1997 20:58:50 +0000 (20:58 +0000)]
Updated the Makefile to work with the new build strategy.

27 years agoRemove -s option and $PYTHONSUPPRESS environment variable.
Guido van Rossum [Sat, 19 Jul 1997 20:46:22 +0000 (20:46 +0000)]
Remove -s option and $PYTHONSUPPRESS environment variable.

27 years agoEmptied (in expectation of a laundry list of what's new in 1.5).
Guido van Rossum [Sat, 19 Jul 1997 20:45:30 +0000 (20:45 +0000)]
Emptied (in expectation of a laundry list of what's new in 1.5).

27 years agoAdded note about libpython1.5.a.
Guido van Rossum [Sat, 19 Jul 1997 20:44:33 +0000 (20:44 +0000)]
Added note about libpython1.5.a.

27 years agoSome new names.
Guido van Rossum [Sat, 19 Jul 1997 20:44:09 +0000 (20:44 +0000)]
Some new names.

27 years agoAdd the option to pass an open file object to GzipFile. This obviates
Guido van Rossum [Sat, 19 Jul 1997 20:22:23 +0000 (20:22 +0000)]
Add the option to pass an open file object to GzipFile.  This obviates
the need for the StringIO subclass.

27 years agoDocument new 'quote' flag to cgi.escape().
Guido van Rossum [Sat, 19 Jul 1997 20:16:07 +0000 (20:16 +0000)]
Document new 'quote' flag to cgi.escape().

27 years agoAdd optional 'quote' flag argument to escape(); if true, translate '"'
Guido van Rossum [Sat, 19 Jul 1997 20:11:53 +0000 (20:11 +0000)]
Add optional 'quote' flag argument to escape(); if true, translate '"'
to '"'.

27 years agoNew dialog routines (Fred Lundh)
Guido van Rossum [Sat, 19 Jul 1997 20:02:36 +0000 (20:02 +0000)]
New dialog routines (Fred Lundh)

27 years agoUse dictionary's update() method in _cnfmerge().
Guido van Rossum [Sat, 19 Jul 1997 20:02:04 +0000 (20:02 +0000)]
Use dictionary's update() method in _cnfmerge().

27 years agoRemoved Py_SuppressPrintingFlag flag; added new
Guido van Rossum [Sat, 19 Jul 1997 19:59:06 +0000 (19:59 +0000)]
Removed Py_SuppressPrintingFlag flag; added new
PyEval_{Acquire,Release}Thread() calls.

27 years agoRemoved remaining support for Tk versions below 4.0.
Guido van Rossum [Sat, 19 Jul 1997 19:57:42 +0000 (19:57 +0000)]
Removed remaining support for Tk versions below 4.0.

27 years agoMoved PyEval_{Acquire,Release}Thread() to within the same #ifdef
Guido van Rossum [Sat, 19 Jul 1997 19:55:50 +0000 (19:55 +0000)]
Moved PyEval_{Acquire,Release}Thread() to within the same #ifdef
WITH_THREAD as PyEval_InitThreads().

Removed use of Py_SuppressPrintingFlag.

27 years agoAdapted to new build procedure (hopefully correct -- can't test it!).
Guido van Rossum [Sat, 19 Jul 1997 19:54:25 +0000 (19:54 +0000)]
Adapted to new build procedure (hopefully correct -- can't test it!).

27 years agoRemoved a bunch of extern declarations of functions that are now
Guido van Rossum [Sat, 19 Jul 1997 19:51:43 +0000 (19:51 +0000)]
Removed a bunch of extern declarations of functions that are now
properly declared in Python.h.

27 years agoAdded declarations for Py_{Set,Get}ProgramName() and a bunch of other
Guido van Rossum [Sat, 19 Jul 1997 19:50:52 +0000 (19:50 +0000)]
Added declarations for Py_{Set,Get}ProgramName() and a bunch of other
Py_Get*() functions.

27 years agoAdded decl for PyInt_GetMax().
Guido van Rossum [Sat, 19 Jul 1997 19:49:11 +0000 (19:49 +0000)]
Added decl for PyInt_GetMax().

27 years agoMake it return a _const_ char*.
Guido van Rossum [Sat, 19 Jul 1997 19:48:41 +0000 (19:48 +0000)]
Make it return a _const_ char*.

27 years agoNew build procedure.
Guido van Rossum [Sat, 19 Jul 1997 19:39:57 +0000 (19:39 +0000)]
New build procedure.

27 years agoNew build procedure, using a single library libpython$(VERSION) at
Guido van Rossum [Sat, 19 Jul 1997 19:38:43 +0000 (19:38 +0000)]
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.

27 years agoThe usual
Guido van Rossum [Sat, 19 Jul 1997 19:36:02 +0000 (19:36 +0000)]
The usual

27 years agoSet $VERSION here (fixed to 1.5).
Guido van Rossum [Sat, 19 Jul 1997 19:35:41 +0000 (19:35 +0000)]
Set $VERSION here (fixed to 1.5).
Remove some unneeded AC_SUBST() calls.

27 years agoMoved PyEval_InitThreads to inside WITH_THREAD, where it belongs.
Guido van Rossum [Sat, 19 Jul 1997 19:27:30 +0000 (19:27 +0000)]
Moved PyEval_InitThreads to inside WITH_THREAD, where it belongs.

27 years agoGot rid of "suppres printing" flag.
Guido van Rossum [Sat, 19 Jul 1997 19:26:38 +0000 (19:26 +0000)]
Got rid of "suppres printing" flag.

27 years agoThis is now the "real" main program -- it calls Py_Main(argc, argv)
Guido van Rossum [Sat, 19 Jul 1997 19:25:33 +0000 (19:25 +0000)]
This is now the "real" main program -- it calls Py_Main(argc, argv)
which is in the library and does all the work.

27 years agoTracking changes to Py_Main():
Guido van Rossum [Sat, 19 Jul 1997 19:24:41 +0000 (19:24 +0000)]
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.

27 years agoThis is no longer the real main program; it now defines Py_Main(), so
Guido van Rossum [Sat, 19 Jul 1997 19:20:32 +0000 (19:20 +0000)]
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.

27 years agoMoved some stuff here from main.c (part of a big restructuring - wait
Guido van Rossum [Sat, 19 Jul 1997 19:17:22 +0000 (19:17 +0000)]
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().

27 years agoRemove confusing usage comments at end.
Guido van Rossum [Sat, 19 Jul 1997 00:02:22 +0000 (00:02 +0000)]
Remove confusing usage comments at end.

27 years agoInclude pystate.h earlier so it can be referenced by ceval.h.
Guido van Rossum [Fri, 18 Jul 1997 23:59:26 +0000 (23:59 +0000)]
Include pystate.h earlier so it can be referenced by ceval.h.

27 years agoUse the new functions PyEval_AcquireThread() and
Guido van Rossum [Fri, 18 Jul 1997 23:57:50 +0000 (23:57 +0000)]
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.

27 years agoPyEval_SaveThread() and PyEval_RestoreThread() now return/take a
Guido van Rossum [Fri, 18 Jul 1997 23:56:58 +0000 (23:56 +0000)]
PyEval_SaveThread() and PyEval_RestoreThread() now return/take a
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.

27 years agoNit: round delays to 0.1 second.
Guido van Rossum [Fri, 18 Jul 1997 23:50:22 +0000 (23:50 +0000)]
Nit: round delays to 0.1 second.

27 years agoThe usual
Guido van Rossum [Fri, 18 Jul 1997 23:29:40 +0000 (23:29 +0000)]
The usual

27 years agoSet OPT to -g -O2 (or -O2 when -g not supported) when using gcc.
Guido van Rossum [Fri, 18 Jul 1997 23:29:09 +0000 (23:29 +0000)]
Set OPT to -g -O2 (or -O2 when -g not supported) when using gcc.

27 years agoadded code.py; codehack.py is obsolete
Guido van Rossum [Fri, 18 Jul 1997 21:08:07 +0000 (21:08 +0000)]
added code.py; codehack.py is obsolete

27 years agoAdded label{module-spam}
Guido van Rossum [Fri, 18 Jul 1997 21:07:34 +0000 (21:07 +0000)]
Added label{module-spam}

27 years agoRemove pprint from the list of undocumented modules.
Fred Drake [Fri, 18 Jul 1997 20:44:22 +0000 (20:44 +0000)]
Remove pprint from the list of undocumented modules.

27 years agoAdd entry for the pprint module.
Fred Drake [Fri, 18 Jul 1997 20:43:53 +0000 (20:43 +0000)]
Add entry for the pprint module.

27 years agoAdd libpprint.tex to the lib.dvi dependencies.
Fred Drake [Fri, 18 Jul 1997 20:43:27 +0000 (20:43 +0000)]
Add libpprint.tex to the lib.dvi dependencies.

27 years agoSlight mods to make the module conform to the documentation.
Fred Drake [Fri, 18 Jul 1997 20:42:39 +0000 (20:42 +0000)]
Slight mods to make the module conform to the documentation.

27 years agoDocumentation for the pprint module.
Fred Drake [Fri, 18 Jul 1997 20:41:58 +0000 (20:41 +0000)]
Documentation for the pprint module.

27 years agoChecking in new module code.py -- utilities dealing with code objects.
Guido van Rossum [Fri, 18 Jul 1997 16:57:52 +0000 (16:57 +0000)]
Checking in new module code.py -- utilities dealing with code objects.
Currently, contains one function: compile_command(), which helps
determining whether a source string is complete, incomplete or in
error.  This is useful when writing your own version of the Python
read-eval-print loop.

27 years agoThis module is now completely obsolete.
Guido van Rossum [Fri, 18 Jul 1997 16:48:30 +0000 (16:48 +0000)]
This module is now completely obsolete.
Noted this in the XXX comments.
Also, changed all three functions to use the attributes if they exist.

27 years agoNo longer need to use codehack -- use co.co_firstlineno instead.
Guido van Rossum [Fri, 18 Jul 1997 16:47:40 +0000 (16:47 +0000)]
No longer need to use codehack -- use co.co_firstlineno instead.

27 years agoUse sys.exc_info() instead of sys.exc_{type,value,traceback}.
Guido van Rossum [Fri, 18 Jul 1997 16:46:36 +0000 (16:46 +0000)]
Use sys.exc_info() instead of sys.exc_{type,value,traceback}.
Also corrected a typo in format_stack (t should've been f).

27 years agoSome new tests by Jeffrey
Guido van Rossum [Fri, 18 Jul 1997 04:26:25 +0000 (04:26 +0000)]
Some new tests by Jeffrey

27 years agoJeffrey's latest -- reorder my chages somewhat,
Guido van Rossum [Fri, 18 Jul 1997 04:26:03 +0000 (04:26 +0000)]
Jeffrey's latest -- reorder my chages somewhat,
removed some of his own cruft.  Added \g<...> references in replacement text.

27 years agoHuge speedup by inlining some common integer operations:
Guido van Rossum [Thu, 17 Jul 1997 23:12:42 +0000 (23:12 +0000)]
Huge speedup by inlining some common integer operations:
int+int, int-int, int <compareop> int, and list[int].
(Unfortunately, int*int is way too much code to inline.)

Also corrected a NULL that should have been a zero.

27 years agoPatches by AMK to check that the db is still open.
Guido van Rossum [Thu, 17 Jul 1997 22:56:01 +0000 (22:56 +0000)]
Patches by AMK to check that the db is still open.

27 years agoAdd 'return' keyword before error calls.
Guido van Rossum [Thu, 17 Jul 1997 22:55:06 +0000 (22:55 +0000)]
Add 'return' keyword before error calls.

27 years agoJeffrey's latests
Guido van Rossum [Thu, 17 Jul 1997 22:41:38 +0000 (22:41 +0000)]
Jeffrey's latests

27 years agoCorrectly implement sub, subn, and split. Also correct and augment
Guido van Rossum [Thu, 17 Jul 1997 22:39:13 +0000 (22:39 +0000)]
Correctly implement sub, subn, and split.  Also correct and augment
the cache code.

27 years agoJeffrey's next installment
Guido van Rossum [Thu, 17 Jul 1997 22:38:10 +0000 (22:38 +0000)]
Jeffrey's next installment

27 years agoCorresponding output.
Guido van Rossum [Thu, 17 Jul 1997 22:37:07 +0000 (22:37 +0000)]
Corresponding output.

27 years agoSeveral additions from Jeffrey.
Guido van Rossum [Thu, 17 Jul 1997 22:36:39 +0000 (22:36 +0000)]
Several additions from Jeffrey.

27 years agoAdded tests for sub, subn, and split.
Guido van Rossum [Thu, 17 Jul 1997 22:36:14 +0000 (22:36 +0000)]
Added tests for sub, subn, and split.

27 years agoUse 'and' instead of '&', which is a (La)TeX control character.
Guido van Rossum [Thu, 17 Jul 1997 18:30:15 +0000 (18:30 +0000)]
Use 'and' instead of '&', which is a (La)TeX control character.
"make lib tut ext" should now be errorfree.

27 years agoAdd AMK's seealso environment that is now used in the library manual
Guido van Rossum [Thu, 17 Jul 1997 18:27:53 +0000 (18:27 +0000)]
Add AMK's seealso environment that is now used in the library manual
at some places.

27 years agoAMK's megapatch:
Guido van Rossum [Thu, 17 Jul 1997 16:34:52 +0000 (16:34 +0000)]
AMK's megapatch:
* \bcode, \ecode added everywhere
* \label{module-foo} added everywhere
* A few \seealso sections added.
* Indentation fixed inside verbatim in lib*tex files

27 years agoExtensive changes by AMK.
Guido van Rossum [Thu, 17 Jul 1997 16:29:42 +0000 (16:29 +0000)]
Extensive changes by AMK.

27 years agoNote that getvalue() must be called before close().
Guido van Rossum [Thu, 17 Jul 1997 16:29:04 +0000 (16:29 +0000)]
Note that getvalue() must be called before close().

27 years agoAdded libni.tex libgzip.tex
Guido van Rossum [Thu, 17 Jul 1997 16:27:42 +0000 (16:27 +0000)]
Added libni.tex libgzip.tex

27 years agoNew from AMK
Guido van Rossum [Thu, 17 Jul 1997 16:26:11 +0000 (16:26 +0000)]
New from AMK

27 years agoNew version (interim) by AMK.
Guido van Rossum [Thu, 17 Jul 1997 16:21:52 +0000 (16:21 +0000)]
New version (interim) by AMK.

27 years agoRemoved mailbox, SocketServer, cmath -- these are now documented!
Guido van Rossum [Thu, 17 Jul 1997 16:21:18 +0000 (16:21 +0000)]
Removed mailbox, SocketServer, cmath -- these are now documented!

27 years agoAdded cmath
Guido van Rossum [Thu, 17 Jul 1997 16:15:18 +0000 (16:15 +0000)]
Added cmath

27 years agoTypo in example.
Guido van Rossum [Thu, 17 Jul 1997 16:14:12 +0000 (16:14 +0000)]
Typo in example.

27 years agoNew cmath module docs, by AMK (with additions and deletions by Guido).
Guido van Rossum [Thu, 17 Jul 1997 16:13:45 +0000 (16:13 +0000)]
New cmath module docs, by AMK (with additions and deletions by Guido).

27 years agoAdded fileno(); added readlines(sizehint).
Guido van Rossum [Thu, 17 Jul 1997 16:05:47 +0000 (16:05 +0000)]
Added fileno(); added readlines(sizehint).
AMK's sed job.

27 years agoFix dropped word.
Guido van Rossum [Thu, 17 Jul 1997 15:58:43 +0000 (15:58 +0000)]
Fix dropped word.

27 years agoFix xover implementation according to Fred Lundh.
Guido van Rossum [Thu, 17 Jul 1997 15:21:52 +0000 (15:21 +0000)]
Fix xover implementation according to Fred Lundh.

27 years agoJeffrey's latest -- seems to solve most problems!
Guido van Rossum [Thu, 17 Jul 1997 14:52:48 +0000 (14:52 +0000)]
Jeffrey's latest -- seems to solve most problems!

27 years agoAdd flush() method to fake file.
Guido van Rossum [Thu, 17 Jul 1997 14:51:37 +0000 (14:51 +0000)]
Add flush() method to fake file.

27 years agoFix bug found by kjpylint; change doc string to avoid "(" in column 1.
Guido van Rossum [Wed, 16 Jul 1997 16:21:38 +0000 (16:21 +0000)]
Fix bug found by kjpylint; change doc string to avoid "(" in column 1.

27 years agoAdded remaining PyThread symbols.
Guido van Rossum [Wed, 16 Jul 1997 15:51:52 +0000 (15:51 +0000)]
Added remaining PyThread symbols.

27 years agoAdded a few new undocumented modules.
Guido van Rossum [Wed, 16 Jul 1997 15:48:20 +0000 (15:48 +0000)]
Added a few new undocumented modules.

27 years agoCatch all exceptions in test modules.
Guido van Rossum [Wed, 16 Jul 1997 01:56:13 +0000 (01:56 +0000)]
Catch all exceptions in test modules.

27 years agoAdded output from new tests.
Guido van Rossum [Tue, 15 Jul 1997 19:01:38 +0000 (19:01 +0000)]
Added output from new tests.

27 years agoFixed a syntax error caused by a bad line in the Perl source.
Guido van Rossum [Tue, 15 Jul 1997 19:01:04 +0000 (19:01 +0000)]
Fixed a syntax error caused by a bad line in the Perl source.

27 years agoCorrect inf. while loop.
Guido van Rossum [Tue, 15 Jul 1997 18:59:04 +0000 (18:59 +0000)]
Correct inf. while loop.

27 years agoMerged Jeffrey's changes in.
Guido van Rossum [Tue, 15 Jul 1997 18:47:48 +0000 (18:47 +0000)]
Merged Jeffrey's changes in.

27 years agoMerged my changes in, and added all converted Perl tests.
Guido van Rossum [Tue, 15 Jul 1997 18:45:20 +0000 (18:45 +0000)]
Merged my changes in, and added all converted Perl tests.

27 years agoJeffrey's version
Guido van Rossum [Tue, 15 Jul 1997 18:42:58 +0000 (18:42 +0000)]
Jeffrey's version

27 years agoMore changes by Jeffrey.
Guido van Rossum [Tue, 15 Jul 1997 18:11:42 +0000 (18:11 +0000)]
More changes by Jeffrey.

27 years agoTweak re_tests and test_re to differentiate between
Guido van Rossum [Tue, 15 Jul 1997 15:49:52 +0000 (15:49 +0000)]
Tweak re_tests and test_re to differentiate between
groups that have no value and groups that are out of bounds.

27 years agoMore tweaks; re.py is nearly there...
Guido van Rossum [Tue, 15 Jul 1997 15:40:57 +0000 (15:40 +0000)]
More tweaks; re.py is nearly there...

27 years agoFix group() -- should be tuple even when re has exactly one group.
Guido van Rossum [Tue, 15 Jul 1997 15:40:29 +0000 (15:40 +0000)]
Fix group() -- should be tuple even when re has exactly one group.

27 years agoJeffrey's latest -- almost there.
Guido van Rossum [Tue, 15 Jul 1997 15:38:20 +0000 (15:38 +0000)]
Jeffrey's latest -- almost there.

27 years agoJeffrey's newest
Guido van Rossum [Tue, 15 Jul 1997 14:38:13 +0000 (14:38 +0000)]
Jeffrey's newest

27 years agoThree fewer incorrect failures
Guido van Rossum [Tue, 15 Jul 1997 02:49:15 +0000 (02:49 +0000)]
Three fewer incorrect failures

27 years agoReformatted.
Guido van Rossum [Tue, 15 Jul 1997 01:47:08 +0000 (01:47 +0000)]
Reformatted.
Fixed some problem with uninitialized syntax tables.
Jeffrey.

27 years agoAfter some discussion with Jeremy and Fred, decided to limit the
Guido van Rossum [Mon, 14 Jul 1997 19:08:15 +0000 (19:08 +0000)]
After some discussion with Jeremy and Fred, decided to limit the
default urlparse cache size to 20 instead of 2000.  The main use of
the cache seems to be to gain some speed in Grail, which is calling
urljoin with the same base for each anchor.  2000 is a bit too big for
Jeremy, who doesn't need the cache at all.  20 should keep at least
95% of the Grail speedup while wasting an insignificant amount of
memory in Jeremy's application.

28 years agoReordered list of methods to hopefully put the most frequently used
Guido van Rossum [Sun, 13 Jul 1997 03:58:01 +0000 (03:58 +0000)]
Reordered list of methods to hopefully put the most frequently used
ones near the front.

28 years agoReordered list of methods to hopefully put the most frequently used
Guido van Rossum [Sun, 13 Jul 1997 03:56:50 +0000 (03:56 +0000)]
Reordered list of methods to hopefully put the most frequently used
ones near the front.

Also added a missing "return -1" to PyFile_WriteString.