Barry Warsaw [Tue, 9 Feb 1999 19:31:45 +0000 (19:31 +0000)]
Got rid of the file-global PosixError. This was redundant since it
was just an alias for PyExc_OSError and the way we were doing it was
causing a (small) memory leak anyway. Just use PyExc_OSError
everywhere.
On Windows, -i shouldn't call set[v]buf(stdin, ...) because it screws
up the _tkinter main loop. Not clear why; the _kbhit() call _tkinter
makes probably confuses the stdio library when buffering isn't set to
whatever it is by default.
Fred Drake [Tue, 9 Feb 1999 15:31:52 +0000 (15:31 +0000)]
Back out some of the fine tuning; something in all that interacted
badly in practice and botched the whole thing. Wasn't obvious when
looking at the local effects (which worked), but completely broke
entire pages. ;-(
+ Implements a put_nowait method.
+ Adds a corresponding Queue.Full exception.
+ Simplifies the implementation by adding optional "block" args to get() and
put(), and makes the old get_nowait() and new put_nowait() one-line
redirections to get() and put().
+ Uses (much) simpler logic for the nowait cases.
+ Regularizes the doc strings to something closer to "Guido style" <wink>.
+ Converts two stray tabs into spaces.
+ Removes confusing verbiage about the queue "not being available" from the
docstrings -- never knew what that meant as a user, and after digging into
the implementation still didn't know what it was trying to say.
Jack Jansen [Sun, 7 Feb 1999 14:00:50 +0000 (14:00 +0000)]
Added a define USE_CORE_TOOLBOX, which includes six core toolbox modules
into the config file. This define is also automatically set if USE_TOOLBOX is
defined.
Some weird symbol (M_I386) was used to decide whether to include the
audioop module; this was no longer defined. Use MS_WINDOWS instead.
(I have a feeling that this was for the WATCOM port; too bad.)
Also finally get rid of some obsolete commented-out access statements.
A note about the previous checkin: I believe it's correct, but I found
something strange: the file Lib/test/audiotest.au in the Python
distribution was evidently encoded in u-LAW format but had its
encoding set to 2, i.e. linear-8. I hope that this is a mistake
caused by some conversion program that produced this .au file; I just
found it on a website.
Portability fix for [f]statvfs() return tuple: no longer return the
f_fsid field, since it's not a scalar on all systems supporting this
call (in particular, it's a tuple of two longs on AIX). Since it's
not particularly useful, just nuke it. Adapted the doc strings too.
Jack Jansen [Wed, 3 Feb 1999 13:09:27 +0000 (13:09 +0000)]
Partly updated to reflect the new organization and the availability of CVS
access. Will still need a bit of work when all plugins are separated, probably.
Fix leaking of instances by removing the elements variable that we
created on closing the parser. The elements variable is now created
in the reset() method, so that the sequence close(); reset();
... works.
Also, add the name of the entity reference that wasn't found to the
error message.
Barry Warsaw [Mon, 1 Feb 1999 17:09:00 +0000 (17:09 +0000)]
PyPcre_expand(): Fixed two memory leaks, where a PyString_FromString()
was appended to a list. Lists are reference count neutral, so the
string must be DECREF'd. Also added some checks for the return value
of PyList_Append().
Note: there are still some memory problems reported by Purify (I get
two Array Bounds Reads still and an Unitialized Memory Read). Also,
in scanning the code, there appears to be some potential problems
where return values aren't checked. To much to attack now though.
Patch by Sjoerd Mullender for better compatibility with the version
from Python 1.5.1:
If after __init__ finishes no new elements variable was created, this
patch will search the instance's namespace for all attributes whose
name start with start_ or end_ and put their value in a new elements
instance variable.
Just van Rossum [Sat, 30 Jan 1999 23:49:45 +0000 (23:49 +0000)]
There are now three possible ways to run the IDE:
- this file dropped onto the interpreter
- applet built by BuildApplet (contains only __main__)
- applet built by BuildIDE (contains all IDE modules)
Just van Rossum [Sat, 30 Jan 1999 17:46:34 +0000 (17:46 +0000)]
Fixed two typo's (Plugins -> PlugIns) and added some explicit path munging to allow the script to also work from the Scripts folder. Somehow either of these fixes solved a problem where it suddenly refused to make a PythonCore alias in the Extensions folder. -- jvr