Tim Peters [Tue, 29 Jul 2003 17:22:57 +0000 (17:22 +0000)]
SF bug 778400: IDLE hangs when selecting "Edit with IDLE".
The fix is confined to the Windows installer.
Not a bugfix candidate: the need for the new -n switch added here was
introduced by moving to the idlefork IDLE (so this change isn't needed
or helpful before 2.3).
Kurt B. Kaiser [Sun, 27 Jul 2003 03:24:19 +0000 (03:24 +0000)]
Added a banner to the shell startup message discussing possible
warnings from personal firewall software. Added the same text
to README.txt, updated NEWS.txt for release.
Jack Jansen [Thu, 24 Jul 2003 22:25:03 +0000 (22:25 +0000)]
Don't export the SPB type as "SPB", because it shadows the method SPB,
which is really important. This is a stopgap measure, as only the generated
C code is adapted. Fixes #776533.
Fixes bug of having default argument for TimeRE's __init__ that caused the
LocaleTime instance to only be created once and thus not be recreated when
the locale changed.
Remove caching of TimeRE (and thus LocaleTime) instance. Error was being
caught when executing test_strptime, test_logging, and test_time in that order
when the testing of "%c" occured. Suspect the cache was not being recreated
(the test passed when test_logging was forced to re-establish the locale).
Kurt B. Kaiser [Wed, 23 Jul 2003 15:42:14 +0000 (15:42 +0000)]
1. Python Bug 775541: Calltips error when docstring is None. Introduced
by patch 769142. Fixed by patch 776062. KBK will backport net result
to IDLE release22-maint and IDLEfork.
2. Update NEWS.txt and idlever for release.
Jack Jansen [Wed, 23 Jul 2003 10:51:55 +0000 (10:51 +0000)]
Don't force boot-disk-only install, for reasons unknown it causes more
problems than it solves. In stead, put a warning near the top of the
welcome message. Fixes (or, rather works around) bug #764975.
Jack Jansen [Wed, 23 Jul 2003 10:49:17 +0000 (10:49 +0000)]
Scripts runs with pythonw no longer had full window manager access due
to the name change of Python.app/Contents/MacOS/python to
Python.app/Contents/MacOS/Python. Fixes #776116.
Tim Peters [Wed, 23 Jul 2003 00:30:11 +0000 (00:30 +0000)]
locale-restoration code: Don't leave comparison to None implicit. For
all I know, the original locale may be '' (I don't think that's possible,
but ...), and if so we would certainly want to restore it.
Tim Peters [Wed, 23 Jul 2003 00:05:07 +0000 (00:05 +0000)]
Fred wasn't kidding -- there really are docs for the locale module <wink>.
Obtain the original locale in the documented way. This way actually
works for me.
Restore the original locale at the end, instead of forcing to "C".
Move the locale fiddling into the test driver instead of doing it as a
side effect of merely importing the module. I don't know why the test
is mucking with locale (and also added a comment saying so), but it
surely has no justification for doing that as an import side-effect.
Now whenever the locale-changing code executes, the locale-restoring code
will also get run.
Thomas Heller [Tue, 22 Jul 2003 18:10:15 +0000 (18:10 +0000)]
Change the zipimport implementation to accept files containing
arbitrary bytes before the actual zip compatible archive. Zipfiles
containing comments at the end of the file are still not supported.
Add a testcase to test_zipimport, and update NEWS.
Cygwin's pthread_sigmask() implementation appears to be buggy. This
patch works around this problem by using sigprocmask() instead.
This patch is implemented in a general way so it could be used by other
platforms too. If this approach is deemed too risky, then I can work up
a patch that just hacks Python/thread_pthread.h for Cygwin.
Note that I tested this patch against 2.3c1 under Red Hat Linux 8.0 too.
[snip]
And finally, I need someone to regenerate pyconfig.h.in and configure
with the same versions of the autotools that are normally used by
Python.
Neal kindly regenerated pyconfig.h.in and configure for me.
Jack Jansen [Tue, 22 Jul 2003 13:45:26 +0000 (13:45 +0000)]
Files used for the 2.3rc1+ binary installer. This one has the size problem
fixed. It also attempts to force boot-disk-only installs, but this seems to
lead to a problem that you have to deselect and reselect the installation disk.
If no-one comes up with a fix RSN I'll revert to the previous situation and
explain in the readme that you cannot install on a non-system-disk.
Tim Peters [Tue, 22 Jul 2003 02:50:01 +0000 (02:50 +0000)]
Windows fix: When PYTHONCASEOK is set, or for any other reason imports
are satisfied in a case-insensitive manner, the attempt to import (the
non-existent) fcntl gets satisfied by FCNTL.py instead, and the tempfile
module defines a Unix-specific _set_cloexec() function in that case. As
a result, temp files can't be created then (blows up with an AttributeError
trying to reference fcntl.fcntl). This just popped up in the spambayes
project, where there is no apparent workaround (which is why I'm pushing
this in now).
Jack Jansen [Mon, 21 Jul 2003 22:11:07 +0000 (22:11 +0000)]
We erronuously re-used the pimpinstaller object if there were multiple installs.
This lead to a duplication of error messages (and installs). Fixes #764615.
Jack Jansen [Mon, 21 Jul 2003 22:03:14 +0000 (22:03 +0000)]
Because plistlib doesn't catch all possible errors that can
happen while parsing a plistfile feeding an ill-formatted file to
pimp may cause an exception. As a stopgap we use an unqualified except
and print an error message "Unspecified error, probably ill-formatted
database". Fixes #765621.
Jack Jansen [Mon, 21 Jul 2003 20:47:11 +0000 (20:47 +0000)]
Backport from r23c1-branch:
Pimp crashed if you tried to install a non-installable package, in stead
of printing a decent error message. Fixes #773450..
Fred Drake [Mon, 21 Jul 2003 17:05:56 +0000 (17:05 +0000)]
Fix memory leak reported & discussed on the Python XML-SIG mailing list.
This patch was provided by Jeremy Kloth, and corresponds to pyexpat.c
1.77 in the PyXML CVS.
Tim Peters [Mon, 21 Jul 2003 14:25:23 +0000 (14:25 +0000)]
Merge 23c1-branch back into the head. Barry will send email about the
New Plan (releases to be made off the head, ongoing random 2.4 stuff
to be done on a short-lived branch, provided anyone is motivated enough
to create one).
Change \code to \verb, because TeX merges the two dashes into a
hyphen, resulting in the output '-list-classifiers', not the correct
'--list-classifiers'. I've verified that the line is now correct
in the DVI, PDF, HTML, and ASCII versions.
Jeremy Hylton [Fri, 18 Jul 2003 03:19:20 +0000 (03:19 +0000)]
Restore the locale to "C" on exit.
If this doesn't happen, it leaves the locale in a state that can cause
other tests to fail. For example, running test_strptime,
test_logging, and test_time in that order.
Add introductory paragraphs
Remove comment about MacOS changes; I'm not going to have time to figure
out what they are
Move PEP 273 section into numeric order