Greg Ward [Thu, 13 May 2004 01:45:33 +0000 (01:45 +0000)]
SF #847346: add test_fix_sentence_endings() to ensure that sentence
endings get fixed even if the input is too short to wrap. Also throw
in a bunch of other tests for this rather tricky and under-tested
feature.
In WrapTestCase.setUp(), don't bother setting fix_sentence_endings=True
for self.wrapper -- just use a separate wrapper in the two tests that
care about it, namely test_whitespace() and test_fix_sentence_endings().
Thomas Heller [Wed, 12 May 2004 20:04:18 +0000 (20:04 +0000)]
Version '2.3.4c1'
File name 'Python-2.3.4c1.exe'
Change company to 'Python Software Foundation'
Add year 2004 to the copyright.
Include tix into the distribution.
Tim Peters [Tue, 11 May 2004 18:11:11 +0000 (18:11 +0000)]
Update copyright years. In the Windows resource, change the name of the
company to the PSF (Zope Corp and PythonLabs no longer have anything to
do with this!).
Barry Warsaw [Tue, 11 May 2004 02:07:03 +0000 (02:07 +0000)]
In order to fix SF bug # 824977, we replace calloc()/free() calls in
binascii_a2b_qp() and binascii_b2a_qp() with calls to PyMem_Malloc() and
PyMem_Free(). These won't return NULL unless the allocations actually fail,
so it won't trigger a bogus memory error on some platforms <cough>AIX</cough>
when passed a length of zero.
Fred Drake [Wed, 5 May 2004 04:24:53 +0000 (04:24 +0000)]
Remove list of pickle protocol names used by the copy module; there
are enough subtleties to pickling that we don't want misunderstanding
to spread because we don't provide all the information twice. The
reference to the pickle module for information will have to suffice;
at least only one portion of the docs will be out of date. ;-(
Greg Ward [Wed, 5 May 2004 01:33:21 +0000 (01:33 +0000)]
SF #814606: fix mixer docs to talk about "controls", not "channels".
General cleanup of mixer docs, especially clarifying which exceptions
are thrown when.
Trim \platform{}, add \versionadded{}.
SF #926075: Fixed the bug that returns a wrong pattern object for
a string or unicode object in sre.compile() when a different type
pattern with the same value exists.
SF #926075: Fixed the bug that returns a wrong pattern object for
a string or unicode object in sre.compile() when a different type
pattern with the same value exists.
Thomas Heller [Thu, 15 Apr 2004 17:51:59 +0000 (17:51 +0000)]
Recompiled the binary wininst.exe after this change:
When loading the Python dll to run the postinstall script, try to load
it from the install directory (as reported by the registry) in case it
is not found on the default Loadlibrary search path.
Fixes SF 935091: bdist_winist post-install script fails on non-admin Python
Thomas Heller [Thu, 15 Apr 2004 17:50:42 +0000 (17:50 +0000)]
When loading the Python dll to run the postinstall script, try to load
it from the install directory (as reported by the registry) in case it
is not found on the default Loadlibrary search path.
Fixes SF 935091: bdist_winist post-install script fails on non-admin Python
Backport checkin>
Bug #934635: Fixed a bug where the configure script couldn't detect
getaddrinfo() properly if the KAME stack had SCTP support.
(Submitted by SUZUKI Shinsuke)
Andrew MacIntyre [Sun, 11 Apr 2004 12:12:31 +0000 (12:12 +0000)]
Backport to 2.3:
Fixes for AF_UNIX support on OS/2:
- return the full size of the sockaddr_un structure, without which
bind() fails with EINVAL;
- set test_socketserver to use a socket name that meets the form
required by the underlying implementation;
- don't bother exercising the forking AF_UNIX tests on EMX - its
fork() can't handle the stress.
OS/2's TCP/IP stack supports AF_UNIX sockets, with the limitation that
the socket name must start with /socket32/. Unlike Unix systems, this
file never exists in the file system.
If a file is opened with an explicit buffer size >= 1, repeated
close() calls would attempt to free() the buffer already free()ed on
the first close(). [bug introduced with patch #788249]
Making sure that the buffer is free()ed in file object deallocation is
a belt-n-braces bit of insurance against a memory leak.
Fred Drake [Thu, 1 Apr 2004 16:38:44 +0000 (16:38 +0000)]
remove workarounds to prevent "--" in code from being improperly munged to
single hyphens in the HTML output; this is no longer needed now that
../perl/python.perl makes things just work
Fred Drake [Thu, 1 Apr 2004 07:38:49 +0000 (07:38 +0000)]
Fix support for the "prog" keyword to the OptionParser constructor, as well
as directly setting the .prog attribute (which should be supported based on
the class docstring).
Closes SF bug #850964.
Fred Drake [Thu, 1 Apr 2004 04:33:39 +0000 (04:33 +0000)]
backport trunk revision 1.144, closing SF bug #793702:
- make "--" in code text not get converted to "-"
- fix minor typo in comment
(but this time the typo is fixed correctly!)
Fred Drake [Thu, 1 Apr 2004 04:11:05 +0000 (04:11 +0000)]
Note that reading from a socket may not always return all of the
remaining content of a stream when expected to do so.
Closes SF bug #725265. Backported from trunk revision 1.52.
Fred Drake [Thu, 1 Apr 2004 04:06:52 +0000 (04:06 +0000)]
- make sure the methods minidom adds to the basic DOM are attributed
to Node objects in the index (closes SF bug #832251)
- fix a variety of markup nits
Guido van Rossum [Wed, 31 Mar 2004 18:55:17 +0000 (18:55 +0000)]
Backport 1.17:
When /tmp has certain sticky bits set, newly created subdirectories
inherit those bits, causing the test_mkdtemp.test_mode() test to fail.
Remove those before comparing the actual mode to the expected mode.
Kurt B. Kaiser [Tue, 30 Mar 2004 04:07:00 +0000 (04:07 +0000)]
Keybindings with the Shift modifier now work correctly. So do bindings
which use the Space key. Limit unmodified user keybindings to the
function keys.
Python Bug 775353, IDLEfork Bugs 755647, 761557
Improve error handling during startup if there's no Tkinter.
M NEWS.txt
M PyShell.py
M config-keys.def
M configHandler.py
M keybindingDialog.py