]>
granicus.if.org Git - python/log
Just van Rossum [Fri, 21 Mar 2003 09:26:59 +0000 (09:26 +0000)]
Patch #681927 from Robin Dunn: add option to add shared libraries or
frameworks to the bundle.
Neal Norwitz [Fri, 21 Mar 2003 03:08:59 +0000 (03:08 +0000)]
Get locale module to build on aix4
Neal Norwitz [Fri, 21 Mar 2003 03:08:31 +0000 (03:08 +0000)]
Get rid of warning on IRIX
Tim Peters [Fri, 21 Mar 2003 02:02:02 +0000 (02:02 +0000)]
Changed the DLL base-address assignment for _csv so it no longer
obviously overlaps w/ datetime (but may -- no time for more here now).
Tim Peters [Fri, 21 Mar 2003 01:55:41 +0000 (01:55 +0000)]
Teach the Windows build & installer about the new csv module + DLL.
Neal Norwitz [Fri, 21 Mar 2003 01:43:31 +0000 (01:43 +0000)]
Add support for os.openpty() on AIX which uses /dev/ptc instead of /dev/ptmx.
Neal Norwitz [Fri, 21 Mar 2003 01:42:58 +0000 (01:42 +0000)]
/dev/ptmx doesn't exist on AIX, they had to be different and use /dev/ptc.
Otherwise, the 2 devices seem to work the same for allocating a pseudo-tty.
Neal Norwitz [Fri, 21 Mar 2003 01:39:14 +0000 (01:39 +0000)]
Prevent the pty test from hanging by setting an alarm.
Currently, test_pty hangs on AIX & HPUX if run after test_openpty.
Tim Peters [Fri, 21 Mar 2003 01:35:28 +0000 (01:35 +0000)]
Squash compiler wng about signed-vs-unsigned mismatch.
Guido van Rossum [Fri, 21 Mar 2003 01:15:58 +0000 (01:15 +0000)]
The message "*** skipping leakage tests ***" was causing the test to
fail in a non-debug build. Only print this in verbose test mode.
Neal Norwitz [Fri, 21 Mar 2003 00:28:30 +0000 (00:28 +0000)]
Add new CSV module to doc dependancies
Skip Montanaro [Thu, 20 Mar 2003 23:41:03 +0000 (23:41 +0000)]
add several people involved with PEP 305 and the csv package
Skip Montanaro [Thu, 20 Mar 2003 23:37:24 +0000 (23:37 +0000)]
add _csv build line
Skip Montanaro [Thu, 20 Mar 2003 23:36:55 +0000 (23:36 +0000)]
announce csv package
Skip Montanaro [Thu, 20 Mar 2003 23:35:38 +0000 (23:35 +0000)]
include the csv package during installation
Skip Montanaro [Thu, 20 Mar 2003 23:35:00 +0000 (23:35 +0000)]
include csv doc section - Fred, you may want to change the location
Skip Montanaro [Thu, 20 Mar 2003 23:34:22 +0000 (23:34 +0000)]
build _csv extension module
Skip Montanaro [Thu, 20 Mar 2003 23:31:24 +0000 (23:31 +0000)]
forgot Cliff's sniffer
Skip Montanaro [Thu, 20 Mar 2003 23:29:12 +0000 (23:29 +0000)]
new CSV file processing module - see PEP 305
Fred Drake [Thu, 20 Mar 2003 22:17:59 +0000 (22:17 +0000)]
- added example of using a comparison function with list.sort(), and
explained the construction of a [(key, value), ...] list as an
alternative
- note that support for cmpfunc=None was added in 2.3
Just van Rossum [Thu, 20 Mar 2003 21:37:05 +0000 (21:37 +0000)]
set $PYTHONHOME in the bootstrap script, for no good reason really,
except to avoid getpath.c giving unsollicited advice on stderr.
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 18:17:16 +0000 (18:17 +0000)]
- apply SF patch #700798: fixes and cleanups for descriptor info
- use a TeX "tie" to prevent word-wrapping in "section x.y"-like text
Skip Montanaro [Thu, 20 Mar 2003 17:58:12 +0000 (17:58 +0000)]
add descriptions of {get,set}defaulttimeout.
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
Neal Norwitz [Thu, 20 Mar 2003 04:33:16 +0000 (04:33 +0000)]
Skip the ioctl test if we can't open /dev/tty. This happens on
Solaris (and probably other Unixes) when run without a terminal
(eg, from cron or at).
Jack Jansen [Wed, 19 Mar 2003 22:51:42 +0000 (22:51 +0000)]
GetCreatorAndType and SetCreatorAndType have been undeprecated. Spotted by
Just.
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.
Just van Rossum [Tue, 18 Mar 2003 18:48:17 +0000 (18:48 +0000)]
replace obsolete 'exceptions' implicit by 'warnings'
Neal Norwitz [Tue, 18 Mar 2003 13:30:14 +0000 (13:30 +0000)]
Fix SF bug #697556, test_posix fails: getlogin
getlogin() can fail for too many reasons, so remove the test
Barry Warsaw [Mon, 17 Mar 2003 20:36:20 +0000 (20:36 +0000)]
_encode_chunks(): Throw out empty chunks.
Barry Warsaw [Mon, 17 Mar 2003 20:35:14 +0000 (20:35 +0000)]
test_long_lines_with_different_header(): Another test from Jason.
Raymond Hettinger [Mon, 17 Mar 2003 19:46:11 +0000 (19:46 +0000)]
Renamed PyObject_GenericGetIter to PyObject_SelfIter
to more accurately describe what the function does.
Suggested by Thomas Wouters.
Barry Warsaw [Mon, 17 Mar 2003 18:36:37 +0000 (18:36 +0000)]
test_getaddresses_nasty(): A test for mimelib SF bug # 697641.
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.
Closes mimelib SF bug # 697641.
Martin v. Löwis [Mon, 17 Mar 2003 18:30:15 +0000 (18:30 +0000)]
Test for UnicodeError instead of ImportError to determine whether
the test file name can be encoded.
Jack Jansen [Mon, 17 Mar 2003 15:45:38 +0000 (15:45 +0000)]
Get rid of Mac.pth: plat-mac is now added through the normal mechanism.
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.
Fixes #661521.
Thomas Wouters [Mon, 17 Mar 2003 11:34:01 +0000 (11:34 +0000)]
Add Hye-Shik Chang for SF patch/bugreport #703471.
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.
Will backport to 2.2-maint (consider it done.)
Jack Jansen [Mon, 17 Mar 2003 10:54:41 +0000 (10:54 +0000)]
Capturing the exit status for the build process didn't work. Using
popen2.Popen4() makes it work. Fixes #702180.
Raymond Hettinger [Mon, 17 Mar 2003 08:35:49 +0000 (08:35 +0000)]
Created PyObject_GenericGetIter().
Factors out the common case of returning self.
Raymond Hettinger [Mon, 17 Mar 2003 08:24:35 +0000 (08:24 +0000)]
Created PyObject_GenericGetIter().
Factors out the common case of returning self.
Jack Jansen [Sun, 16 Mar 2003 22:09:22 +0000 (22:09 +0000)]
The MacPython introductory help is now called MacPython Help, and the
optional full documentation Python Documentation.
Jack Jansen [Sun, 16 Mar 2003 21:04:50 +0000 (21:04 +0000)]
- Don't ask for bring-to-front when quitting through an appleevent.
- Changed checkbox labels as suggested by Kevin Ollivier.
Jack Jansen [Sun, 16 Mar 2003 20:41:58 +0000 (20:41 +0000)]
Lots of textual changes suggested by Matthew Moelter.
Raymond Hettinger [Sun, 16 Mar 2003 20:14:44 +0000 (20:14 +0000)]
Eliminate data dependency in predict macro.
Added two predictions:
GET_ITER --> FOR_ITER
FOR_ITER --> STORE_FAST or UNPACK_SEQUENCE
Improves timings on pybench and timeit.py. Pystone results are neutral.
Raymond Hettinger [Sun, 16 Mar 2003 15:41:11 +0000 (15:41 +0000)]
Fix comment and whitespace.
Raymond Hettinger [Sun, 16 Mar 2003 03:11:04 +0000 (03:11 +0000)]
Introduced macros for a simple opcode prediction protocol.
Applied to common cases:
COMPARE_OP is often followed by a JUMP_IF.
JUMP_IF is usually followed by POP_TOP.
Shows improved timings on PyStone, PyBench, and specific tests
using timeit.py:
python timeit.py -s "x=1" "if x==1: pass"
python timeit.py -s "x=1" "if x==2: pass"
python timeit.py -s "x=1" "if x: pass"
python timeit.py -s "x=100" "while x!=1: x-=1"
Potential future candidates:
GET_ITER predicts FOR_ITER
FOR_ITER predicts STORE_FAST or UNPACK_SEQUENCE
Also, applied missing goto fast_next_opcode to DUP_TOPX.
Guido van Rossum [Sat, 15 Mar 2003 12:25:00 +0000 (12:25 +0000)]
Change the default number of repetitions to 3, both in the Timer class
(from 10) and in main() (from 1).
Add a -v option that shows the raw times. Repeating it cranks up the
display precision.
Always use the "best of N" form of output.
Guido van Rossum [Sat, 15 Mar 2003 12:01:52 +0000 (12:01 +0000)]
If time.tzset doesn't exist, don't test it.
Guido van Rossum [Fri, 14 Mar 2003 21:51:36 +0000 (21:51 +0000)]
- New function time.tzset() provides access to the C library tzet()
function, if supported. (SF patch #675422, by Stuart Bishop.)
Guido van Rossum [Fri, 14 Mar 2003 17:21:00 +0000 (17:21 +0000)]
Implement some recommendations from Raymond H:
- Make all local variables in the template start with an underscore,
to prevent name conflicts with the timed code.
- Added a method to print a traceback that shows source lines from the
expanded template.
- Use that method in main().
Fred Drake [Fri, 14 Mar 2003 16:21:57 +0000 (16:21 +0000)]
Accept commas in unquoted attribute values.
This closes SF patch #669683.
Raymond Hettinger [Fri, 14 Mar 2003 01:37:42 +0000 (01:37 +0000)]
SF patch #701907: More use of fast_next_opcode
My previous patches should have used fast_next_opcode
in a few places instead of continue.
Also, applied one PyInt_AS_LONG macro in a place where
the type had already been checked.
Michael W. Hudson [Thu, 13 Mar 2003 13:56:53 +0000 (13:56 +0000)]
Take out my (long since disabled) POSIX signal mask handling code.
I'm not going to have the time or energy to get this working x-platform
-- anyone who does is welcome to the code!
Kurt B. Kaiser [Wed, 12 Mar 2003 20:52:00 +0000 (20:52 +0000)]
Move setting of ioready 'wait' earlier in call chain, to
rpc.SocketIO.main() and asyncreturn(). Improve comment.
Jack Jansen [Wed, 12 Mar 2003 13:47:39 +0000 (13:47 +0000)]
Filter out the depracation warning for macfs.
Raymond Hettinger [Wed, 12 Mar 2003 04:46:52 +0000 (04:46 +0000)]
SF bug #699237: Tutorial uses omitted slice indices before explaining them
Moved up the explanation of slice default arguments.
Raymond Hettinger [Wed, 12 Mar 2003 04:25:42 +0000 (04:25 +0000)]
SF bug #699934: Obscure error message
Clarify error message for mro conflicts.
Barry Warsaw [Wed, 12 Mar 2003 03:43:09 +0000 (03:43 +0000)]
Update the package version number
Barry Warsaw [Wed, 12 Mar 2003 03:14:11 +0000 (03:14 +0000)]
test_whitespace_eater_unicode(): Make this test Python 2.1 compatible.
Barry Warsaw [Wed, 12 Mar 2003 02:54:17 +0000 (02:54 +0000)]
Python 2.1 doesn't have True and False
Jack Jansen [Tue, 11 Mar 2003 23:07:08 +0000 (23:07 +0000)]
Add a simple Apple Help book to the framework.
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.
Jack Jansen [Tue, 11 Mar 2003 21:50:21 +0000 (21:50 +0000)]
This file was terribly outdated. The example is still silly (and won't
work), but at least the rest of the text is okay now.
Jack Jansen [Tue, 11 Mar 2003 21:48:57 +0000 (21:48 +0000)]
Allow unicode pathnames where FSRefs are expected. Fixes 696253.
Raymond Hettinger [Tue, 11 Mar 2003 21:43:55 +0000 (21:43 +0000)]
Fix spelling.
Greg Ward [Tue, 11 Mar 2003 16:53:13 +0000 (16:53 +0000)]
Open with O_NONBLOCK to avoid hanging on open().
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!
Jack Jansen [Tue, 11 Mar 2003 14:37:19 +0000 (14:37 +0000)]
Patch by Andrew Straw: use urllib2 so proxie access works.
Barry Warsaw [Tue, 11 Mar 2003 05:10:46 +0000 (05:10 +0000)]
Adjust tests for no newline appending to MIMEText.__init__()'s _text
argument.
Barry Warsaw [Tue, 11 Mar 2003 05:05:21 +0000 (05:05 +0000)]
beta 1
Barry Warsaw [Tue, 11 Mar 2003 05:04:54 +0000 (05:04 +0000)]
Adjust tests for no newline appending to MIMEText.__init__()'s _text
argument.
Barry Warsaw [Tue, 11 Mar 2003 05:04:09 +0000 (05:04 +0000)]
__init__(): Don't add a newline to _text if it doesn't already end in
one. Possibly controversial.
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.
Barry Warsaw [Tue, 11 Mar 2003 04:41:35 +0000 (04:41 +0000)]
body_line_iterator(): Accept optional decode argument, pass through to
Message.get_payload().
Barry Warsaw [Tue, 11 Mar 2003 04:40:14 +0000 (04:40 +0000)]
body_line_iterator() now takes a decode argument.
Barry Warsaw [Tue, 11 Mar 2003 04:33:30 +0000 (04:33 +0000)]
get_payload(): Teach this about various uunencoded
Content-Transfer-Encodings
Barry Warsaw [Tue, 11 Mar 2003 04:31:37 +0000 (04:31 +0000)]
test_get_decoded_uu_payload(): A new test for
Content-Transfer-Encoding: x-uuencode
Kurt B. Kaiser [Mon, 10 Mar 2003 20:42:24 +0000 (20:42 +0000)]
M PyShell.py
M rpc.py
Improve exception handing if peer process has terminated.
Kurt B. Kaiser [Mon, 10 Mar 2003 20:41:07 +0000 (20:41 +0000)]
A interruptmodule.c
M setup.py
Implements an interrupt extension module which allows a subthread
to raise an interrupt in the main thread.
Barry Warsaw [Mon, 10 Mar 2003 19:20:18 +0000 (19:20 +0000)]
specialsre, escapesre: In SF bug #663369, Matthew Woodcraft points out
that backslashes must be escaped in character sets.
Barry Warsaw [Mon, 10 Mar 2003 19:18:34 +0000 (19:18 +0000)]
test_escape_backslashes(): A test for SF bug #663369 by Matthew Woodcraft.
Barry Warsaw [Mon, 10 Mar 2003 17:36:04 +0000 (17:36 +0000)]
_bdecode(): Remove redundant check.
Barry Warsaw [Mon, 10 Mar 2003 17:00:43 +0000 (17:00 +0000)]
Fix base class
Barry Warsaw [Mon, 10 Mar 2003 16:59:34 +0000 (16:59 +0000)]
Use ndiffAssertEqual in a couple of places for better error reporting.
Barry Warsaw [Mon, 10 Mar 2003 16:13:50 +0000 (16:13 +0000)]
Describe what happens when decode=True and the payload has bogus
base64 data.
Barry Warsaw [Mon, 10 Mar 2003 16:13:14 +0000 (16:13 +0000)]
get_payload(): If we get a low-level binascii.Error when base64
decoding the payload, just return it as-is.
Barry Warsaw [Mon, 10 Mar 2003 16:09:51 +0000 (16:09 +0000)]
test_broken_base64_payload(): Test for crash in low-level binascii
module when decoding a message with broken base64.
Martin v. Löwis [Mon, 10 Mar 2003 16:01:43 +0000 (16:01 +0000)]
Patch #700839: Fix bugs in the plural handling.
Andrew M. Kuchling [Mon, 10 Mar 2003 15:16:54 +0000 (15:16 +0000)]
[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.
Barry Warsaw [Mon, 10 Mar 2003 15:14:08 +0000 (15:14 +0000)]
_split_ascii() [method and function]: Don't join the lines just to
split them again. Simply return them as chunk lists.
_encode_chunks(): Don't add more folding whitespace than necessary.
Andrew M. Kuchling [Mon, 10 Mar 2003 15:12:00 +0000 (15:12 +0000)]
Use isinstance() instead of type comparison
Barry Warsaw [Mon, 10 Mar 2003 15:11:29 +0000 (15:11 +0000)]
test_another_long_multiline_header(): Yet another formatting test.
Greg Ward [Mon, 10 Mar 2003 03:18:19 +0000 (03:18 +0000)]
openmixer()'s 'mode' parameter has been removed.
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.
Greg Ward [Mon, 10 Mar 2003 03:05:21 +0000 (03:05 +0000)]
Expand description of ossaudiodev.error exception.
Improve descriptions of open(), openmixer().