Matthias Klose [Mon, 16 Aug 2004 12:15:00 +0000 (12:15 +0000)]
- The distutils sdist command now ignores all .svn directories, in
addition to CVS and RCS directories. .svn directories hold
administrative files for the Subversion source control system.
Fred Drake [Tue, 3 Aug 2004 14:46:57 +0000 (14:46 +0000)]
Be more careful about maintaining the invariants; it was actually
possible that the callback-less flavors of the ref or proxy could have
been added during GC, so we don't want to replace them.
Fred Drake [Fri, 30 Jul 2004 18:57:55 +0000 (18:57 +0000)]
- make references to the readline module hyperlinks now that there is
documentation to link to
- document the termination condition for cmd.Cmd.cmdloop()
- document the use of the return value for cmd.Cmd.do_*() methods
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".