Kurt B. Kaiser [Fri, 6 Jun 2003 21:58:38 +0000 (21:58 +0000)]
1. Update WindowList registry when filename changes so that
Window menu updates.
2. Display Python Shell window in Window menu
3. Remove some dead code in FileList.py
Jack Jansen [Sun, 1 Jun 2003 20:57:12 +0000 (20:57 +0000)]
Added two keys to database format: User-install-skips is an array of pathname
prefixes, any file that is skipped during a per-user install that matches
this set is *not* an error; Systemwide-only is a boolean that says the
package cannot be installer per-user.
Jack Jansen [Sun, 1 Jun 2003 20:03:43 +0000 (20:03 +0000)]
Use splitlines() in stead of split() to split lines, and added a method
shortdescription() so the code to split off the first line of the
description isn't all over the place.
Kurt B. Kaiser [Sun, 1 Jun 2003 01:08:32 +0000 (01:08 +0000)]
Set the default for delete-exitfunc in config-main.def to True to handle
abnormal exit situations cleanly, especially stuck user threads. Future
plan is to intercept the user's atexit functions and run them under
IDLE's control.
Greg Ward [Thu, 29 May 2003 21:53:06 +0000 (21:53 +0000)]
Completely change the interface to setparameters():
* it no longer takes ssize, which served no purpose apart from
scolding you if you got it wrong
* changed the order of the three remaining required arguments
to (format, channels, rate) to match the order in which they
must be set
* replaced the optional argument 'emulate' with 'strict': if strict
true, and the audio device does not accept the requested sampling
parameters, raise OSSAudioError
* return a tuple (format, channels, rate) reflecting the sampling
parameters that were actually set
Change the canonical name of ossaudiodev.error to
ossaudiodev.OSSAudioError (keep an alias for backwards compatibility).
Remove 'audio_types' list and 'n_audio_types' (no longer needed now that
setparameters() no longer has an 'ssize' argument to police).
Barry Warsaw [Thu, 29 May 2003 19:39:33 +0000 (19:39 +0000)]
_make_boundary(): Fix for SF bug #745478, broken boundary calculation
in some locales. This code simplifies the boundary algorithm to use
randint() which is what we wanted anyway.
Guido van Rossum [Thu, 29 May 2003 14:36:57 +0000 (14:36 +0000)]
I saw errors from _fileobject.__del__ about missing self._sock. This
can happen if __init__ doesn't complete. Fix it by adding a
try/except to __del__.
Greg Ward [Thu, 29 May 2003 01:39:32 +0000 (01:39 +0000)]
Rewrite the description of setparameters() so it actually reflects the
code (which has also been recently overhauled, so that it can be
documented without embarassment).
Jack Jansen [Wed, 28 May 2003 18:56:30 +0000 (18:56 +0000)]
- Added a scheme whereby pimp can update itself, by importing a module
pimp_update if it exists. Upped the version number to indicate this.
Fixes #731626.
- Added -V (print version) and -u (specify database URL) options when run
as a command line tool.
Gregory P. Smith [Wed, 28 May 2003 16:20:03 +0000 (16:20 +0000)]
Remove the note about the BerkeleyDB license. Barry indicates that
sleepycat has told him that since python is OSS and berkeleydb is
being distributed with python for the bsddb library all is fine.
Gregory P. Smith [Wed, 28 May 2003 07:56:45 +0000 (07:56 +0000)]
Include a link to the pybsddb web documentation for the modern object
oriented DbEnv & Db object BerkeleyDB interface.
Include a note about Sleepycat's BerkeleyDB license with regards to
distributing it within non-opensource applications and include a link
to their website for license details.
Document that 'r' is the default flag for the legacy bsddb btopen(),
hashopen(), and rnopen() functions. This is apparently different than the
dbm libraries in other languages according to Bug #732951. Changing
the default from 'r' to 'c' would break backwards compatibility with
legacy bsddb applications; documenting the default should suffice.
Greg Ward [Tue, 27 May 2003 01:57:21 +0000 (01:57 +0000)]
Oops, move the GIL release/reacquire from oss_sync() to _do_ioctl_0():
that way it applies to *only* the ioctl() call, and also happens for the
other blocking ioctls (POST, RESET).
Greg Ward [Mon, 26 May 2003 22:47:30 +0000 (22:47 +0000)]
Release the GIL in two more methods:
* sync(), because it waits for hardware buffers to flush, which
can take several seconds depending on cirumstances (according
to the OSS docs)
* close(), because it does an implicit sync()
Jack Jansen [Sun, 25 May 2003 22:01:32 +0000 (22:01 +0000)]
Fixed the DESTDIR modifications to also allow MacOSX framework builds
to be installed to a different location. This should make the OSX binary
installer building a lot simpler.
Tim Peters [Sun, 25 May 2003 17:44:31 +0000 (17:44 +0000)]
Fleshed out WeakKeyDictionary.__delitem__ NEWS to cover issues raised on
Python-Dev. Fixed typos in test comments. Added some trivial new test
guts to show the parallelism (now) among __delitem__, __setitem__ and
__getitem__ wrt error conditions.
Still a bugfix candidate for 2.2.3 final, but waiting for Fred to get a
chance to chime in.
Tim Peters [Sun, 25 May 2003 01:45:11 +0000 (01:45 +0000)]
SF 742860: WeakKeyDictionary __delitem__ uses iterkeys
Someone review this, please! Final releases are getting close, Fred
(the weakref guy) won't be around until Tuesday, and the pre-patch
code can indeed raise spurious RuntimeErrors in the presence of
threads or mutating comparison functions.
See the bug report for my confusions: I can't see any reason for why
__delitem__ iterated over the keys. The new one-liner implementation
is much faster, can't raise RuntimeError, and should be better-behaved
in all respects wrt threads.
New tests test_weak_keyed_bad_delitem and
test_weak_keyed_cascading_deletes fail before this patch.
Bugfix candidate for 2.2.3 too, if someone else agrees with this patch.
Kurt B. Kaiser [Sat, 24 May 2003 21:12:46 +0000 (21:12 +0000)]
Improved the RESTART annotation in the shell window when the user
restarts the shell while it is generating output. Also improved
annotation when user repeatedly hammers the Ctrl-F6 restart.
Kurt B. Kaiser [Sat, 24 May 2003 20:59:15 +0000 (20:59 +0000)]
1. Stake Freddy.
e.g. further improve subprocess interrupt, exceptions, and termination.
2. Remove the workarounds in PyShell.py and ScriptBinding.py involving
interrupting the subprocess prior to killing it, not necessary anymore.
3. Fix a bug introduced at PyShell Rev 1.66: was getting extra shell menu
every time the shell window was recreated.
Tim Peters [Sat, 24 May 2003 20:18:24 +0000 (20:18 +0000)]
SF bug 705231: Assertion failed, python aborts.
float_pow(): Don't let the platform pow() raise -1.0 to an integer power
anymore; at least glibc gets it wrong in some cases. Note that
math.pow() will continue to deliver wrong (but platform-native) results
in such cases.