dummy_threading when run with -O would raise a KeyError in Thread.__delete()
when called by atexit thanks to dummy_thread always returning -1 for
dummy_thread.get_ident(). Since exception was not an issue, it is now caught
and tossed.
Martin v. Löwis [Sun, 18 Jul 2004 18:36:18 +0000 (18:36 +0000)]
Remove test for #919008. Users may have old PyXML versions installed,
in which case the test will fail. For the mainline, the test should stay,
and the minimum required PyXML version needs to be raised.
Jack Jansen [Thu, 15 Jul 2004 22:10:52 +0000 (22:10 +0000)]
Backport of 1.15:
After more than two years of puzzlement Jurjen Bos found the reason for
the double-scroll problem: when you pass a tracker function to TrackControl
you shouldn't call your hit function again afterwards. Fixes #711989.
- Bug #981530: Fix UnboundLocalError in shutil.rmtree(). This affects
the documented behavior: the function passed to the onerror()
handler can now also be os.listdir.
[I could've sworn I checked this in, but apparently I didn't, or it
got lost???]
- Bug #981530: Fix UnboundLocalError in shutil.rmtree(). This affects
the documented behavior: the function passed to the onerror()
handler can now also be os.listdir.
[I could've sworn I checked this in, but apparently I didn't, or it
got lost???]
ntpath now compresses erroneous slashes between the drive letter and rest of
the path. Also clarifies handling of UNC paths. Appropriate test were added.
Fixes bug #980327 with patch #988607. Thanks Paul Moore.
threading.Thread used to raise an exception about attempting to execute a
NoneType if an exception in a thread was raised during interpreter shutdown.
This led to a masking of the initial exception (not good). All fixed (good).
Closes bug #754449 (using both patch #954922 and a backport of rev. 1.41 from
HEAD).
Thomas Heller [Fri, 2 Jul 2004 08:37:35 +0000 (08:37 +0000)]
When importing an extension on Windows, the code reads the PE 'import
table' of the dll, to make sure that the dll really was build for the
correct Python version. It does this by looking for an entry
'pythonXY.dll' (X.Y is the Python version number).
The code now checks the size of the dll's import table before reading
entries from it. Before this patch, the code crashed trying to read
the import table when the size was zero (as in Win2k's wmi.dll, for
example).
Look for imports of 'pythonXY_d.dll' in a debug build instead of
'pythonXY.dll'.
Fixes SF 951851: Crash when reading "import table" of certain windows dlls.
Tim Peters [Mon, 7 Jun 2004 23:17:48 +0000 (23:17 +0000)]
SF 952807: Unpickling pickled instances of subclasses of
datetime.date, datetime.datetime and datetime.time could yield insane
objects. Thanks to Jiwon Seo for a fix.
Kurt B. Kaiser [Sun, 6 Jun 2004 17:41:41 +0000 (17:41 +0000)]
Backporting [ 778323 ] Tk Dialog Upon Subprocess Socket Error
Added a Tk error dialog to run.py inform the user if the subprocess can't
connect to the user GUI process. Added a timeout to the GUI's listening
socket. Added Tk error dialogs to PyShell.py to announce a failure to bind the
port or connect to the subprocess. Clean up error handling during connection
initiation phase. This is an update of Python Patch 778323.
M NEWS.txt
M PyShell.py
M ScriptBinding.py
M idlever.py
M run.py
[Bug #954364] inspect.getframeinfo() sometimes produces incorrect traceback line #s; fix is to look at tb.tb_lineno, not tb.frame.f_lineno. Patch from Robin Becker and me.
Jack Jansen [Thu, 3 Jun 2004 21:36:58 +0000 (21:36 +0000)]
Backport of 1.45 and 1.46:
- Replace backticks with repr() or "%r"
- Fix for #862941: "run with commandline python" crashed. Fixed.
- Prefer to use pythonw (if it exists) for "run with commandline python".
Jack Jansen [Thu, 3 Jun 2004 14:38:38 +0000 (14:38 +0000)]
Backport of 1.47:
Fix for #932977: MacOSX does not pass the whole pathname in argv[0] for
#!-scripts, only the filename part, and this can lead to incorrect
initialization of sys.path and sys.executable if there is another python
on $PATH before the one used in #!.
The fix was picked up from the darwinports crowd, thanks!
Jack Jansen [Thu, 3 Jun 2004 13:34:41 +0000 (13:34 +0000)]
Backport of 1.23 and 1.24:
Very large scripts folders could crash the IDE, because it runs out
of Menu IDs (of which there are only 255 in Carbon). Fixed by stopping
examining the scripts folder when we allocate menu ID 200.
Jack Jansen [Thu, 3 Jun 2004 13:07:39 +0000 (13:07 +0000)]
Backport of 1.31-1.34:
- Added a downloader using urllib2 in stead of curl, based on code
donated by Kevin Ollivier. This is now the default downloader.
- Added a watcher mechanism, whereby downloaders and unpackers (and,
later builders) can give status feedback to the user. When running
pimp as a command line tool in verbose mode print this output.
- Force option should be applied to a single package, not recursively
to its dependencies. Fixes #733819.
- Don't use "dict" as a variable, it shadows the builtin. Spotted by
Bob Ippolito.
Two issues spotted by Ronald OUssoren:
- there were no accessor functions for the global per-database fields
- packages and their dependencies were installed in order in stead
of in reverse order.
Greg Ward [Thu, 3 Jun 2004 01:53:13 +0000 (01:53 +0000)]
SF #965425: fix wordsep_re so hyphenated words are handled correctly
when preceded by any punctuation, not just a sequence of more hyphens.
(That was a special case so Optik and Docutils could wrap long options
like --foo-bar correctly; this change generalizes the special-case.)
Greg Ward [Thu, 3 Jun 2004 01:51:27 +0000 (01:51 +0000)]
SF #965425: add WrapTestCase.test_punct_hyphens() to ensure that
hyphenated words wrapped in punctuation, like "foo-bar" or [ding-dong],
are split correctly.