Tim Peters [Thu, 20 Mar 2003 20:53:32 +0000 (20:53 +0000)]
New private API functions _PyFloat_{Pack,Unpack}(4,8}. This is a
refactoring to get all the duplicates of this delicate code out of the
cPickle and struct modules.
Tim Peters [Thu, 20 Mar 2003 18:32:13 +0000 (18:32 +0000)]
SF bug 705836: struct.pack of floats in non-native endian order
pack_float, pack_double, save_float: All the routines for creating
IEEE-format packed representations of floats and doubles simply ignored
that rounding can (in rare cases) propagate out of a long string of
1 bits. At worst, the end-off carry can (by mistake) interfere with
the exponent value, and then unpacking yields a result wrong by a factor
of 2. In less severe cases, it can end up losing more low-order bits
than intended, or fail to catch overflow *caused* by rounding.
Bugfix candidate, but I already backported this to 2.2.
In 2.3, this code remains in severe need of refactoring.
Fred Drake [Thu, 20 Mar 2003 17:39:38 +0000 (17:39 +0000)]
- explain what a UNC path is in the makedirs() description, since
they're actually mentioned there
- remove some extraneous paragraph separations
- \versionadded --> \versionchanged in one place
Gustavo Niemeyer [Wed, 19 Mar 2003 00:35:36 +0000 (00:35 +0000)]
Fixed SF bug #663074. The codec system was using global static
variables to store internal data. As a result, any atempts to use the
unicode system with multiple active interpreters, or successive
interpreter executions, would fail.
Now that information is stored into members of the PyInterpreterState
structure.
Barry Warsaw [Mon, 17 Mar 2003 18:35:42 +0000 (18:35 +0000)]
getaddrlist(): Make sure this consumes all the data, and if there is
no address there (perhaps because of invalid characters, it appends
('', '') to the result set.
Jack Jansen [Mon, 17 Mar 2003 15:44:10 +0000 (15:44 +0000)]
Added a define EXTRAMACHDEPPATH which can be used to add sys.path items
for specific platforms. Use this to add plat-mac and
plat-mac/lib-scriptpackages on MacOSX. Also tested for not having adverse
effects on Linux, and I think this code isn't used on Windows anyway.
Thomas Wouters [Mon, 17 Mar 2003 11:24:29 +0000 (11:24 +0000)]
binascii_a2b_base64: Properly return an empty string if the input was all
invalid, rather than returning a string of random garbage of the
estimated result length. Closes SF patch #703471 by Hye-Shik Chang.
Jack Jansen [Tue, 11 Mar 2003 22:59:26 +0000 (22:59 +0000)]
Adding MacPython online help. Only the basics are installed, with a
placeholder for the full documentation (pointing to the online docs
and explaining you can also install them locally to make them
searchable, etc).
Kurt B. Kaiser [Tue, 11 Mar 2003 22:55:56 +0000 (22:55 +0000)]
M rpc.py
M run.py
1. Clarify that rpc.SocketIO._getresponse() currently blocks on socket.
2. Improve exception handling in subprocess when GUI terminates abruptly.
Guido van Rossum [Tue, 11 Mar 2003 14:46:48 +0000 (14:46 +0000)]
Add 'audio' resource.
ALERT! A month ago or so I made test_ossaudiodev.py require the
'audio' resource, but I didn't make the necessary changes to
regrtest.py. This means that *nobody* has been testing the oss module
all that time!
Barry Warsaw [Tue, 11 Mar 2003 05:03:25 +0000 (05:03 +0000)]
For email 2.5b1, we no longer add a trailing newline to
MIMEText.__init__()'s _text argument if it doesn't already end in a
newline. This may be controversial.
[Patch #649762] Fix for asynchat endless loop
When the null string is used as the terminator, it used to be the same
as None, meaning "collect all the data". In the current code, however, it
falls into an endless loop; this change reverts to the old behavior.
Greg Ward [Mon, 10 Mar 2003 03:17:06 +0000 (03:17 +0000)]
<sys/soundcard.h> seems to exist on both Linux and FreeBSD, so include
it instead of the OS-specific <linux/soundcard.h> or <machine/soundcard.h>.
Mixers devices have an ioctl-only interface, no read/write -- so the
flags passed to open() don't really matter. Thus, drop the 'mode'
parameter to openmixer() (ie. second arg to newossmixerobject()) and
always open mixers with O_RDWR.
Tim Peters [Fri, 7 Mar 2003 21:10:21 +0000 (21:10 +0000)]
Don't quote the path to Python unless the path contains an embedded space.
Quoting the path doesn't work on Win2K (cmd.exe) regardless, this is just
a hack to let the test pass again on Win2K (so long as Python isn't
installed in a path that does contain an embedded space). On Win2K it
looks like we'd also have to add a second pair of double quotes, around
the entire command line.
Skip Montanaro [Fri, 7 Mar 2003 15:45:15 +0000 (15:45 +0000)]
Add a little more verbiage about the bsddb module/package change. It's
clear from recent discussions on c.l.py that people are a bit confused about
the differences between the old bsddb, the new bssdb, the bsddb3/PyBSDDB
package and changes to file formats. Tried to clarify the issues.