]>
granicus.if.org Git - python/log
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().
Greg Ward [Mon, 10 Mar 2003 02:09:51 +0000 (02:09 +0000)]
Rewrite intro paragraphs and add a "See also" box for the link to the
official OSS docs.
Markup fixes: change \code{} variously to \function{}, \method{}, or
\constant{} as appropriate.
Greg Ward [Mon, 10 Mar 2003 00:24:42 +0000 (00:24 +0000)]
Fix two unformatted lists: one is now an 'enumerate' environment, the
other a 'tableii'.
Formatting/typo fix.
Greg Ward [Mon, 10 Mar 2003 00:07:14 +0000 (00:07 +0000)]
Add libossaudiodev.tex.
Greg Ward [Sun, 9 Mar 2003 23:57:34 +0000 (23:57 +0000)]
Wrap all paragraphs to 72 columns.
Two spaces between sentences.
Fix em-dashes -- should be "---" not " - ".
Spelling fix.
Greg Ward [Sun, 9 Mar 2003 23:34:52 +0000 (23:34 +0000)]
Documentation for the ossaudiodev module.
Initial revision supplied by Nicholas FitzRoy-Dale <wzdd@lardcave.net>
(emailed to me [gward@python.net] 2003-03-08 23:37 +1100).
Raymond Hettinger [Sun, 9 Mar 2003 07:44:42 +0000 (07:44 +0000)]
SF patch #691928: Use datetime in _strptime
Contributed by Brett Cannon.
To prevent code duplication, I patched _strptime to use datetime's date
object to do Julian day, Gregorian, and day of the week calculations.
Patch also includes new regression tests to test results and the
calculation gets triggered.
Very minor comment changes and the contact email are also changed.
Raymond Hettinger [Sun, 9 Mar 2003 07:30:43 +0000 (07:30 +0000)]
Sf patch #700047: unicode object leaks refcount on resizing
Contributed by Hye-Shik Chang.
Raymond Hettinger [Sun, 9 Mar 2003 07:19:38 +0000 (07:19 +0000)]
Add contributor name.
Raymond Hettinger [Sun, 9 Mar 2003 07:05:43 +0000 (07:05 +0000)]
SF patch #667730: More DictMixin
* Adds missing pop() methods to weakref.py
* Expands test suite to broaden coverage of objects with
a mapping interface.
Contributed by Sebastien Keim.
Raymond Hettinger [Sun, 9 Mar 2003 05:33:33 +0000 (05:33 +0000)]
SF 698520: Iterator for urllib.URLOpener
Contributed by Brett Cannon.
Just van Rossum [Sat, 8 Mar 2003 19:50:38 +0000 (19:50 +0000)]
[ 684677 ] Allow freeze to exclude implicits
Martin v. Löwis [Sat, 8 Mar 2003 10:25:31 +0000 (10:25 +0000)]
Skip the test if TESTFN_ENCODING is None. Fixes #699386.
Barry Warsaw [Fri, 7 Mar 2003 23:24:34 +0000 (23:24 +0000)]
_split_ascii(): lstrip the individual lines in the ascii split lines,
since we'll be adding our own continuation whitespace later.
Barry Warsaw [Fri, 7 Mar 2003 23:23:04 +0000 (23:23 +0000)]
test_long_unbreakable_lines_with_continuation(): Another funky example
from Jason Mastaler :)
Barry Warsaw [Fri, 7 Mar 2003 22:46:41 +0000 (22:46 +0000)]
decode_rfc2231(): RFC 2231 allows leaving out both the charset and
language without including any single quotes.
Barry Warsaw [Fri, 7 Mar 2003 22:45:55 +0000 (22:45 +0000)]
test_rfc2231_no_language_or_charset(): RFC 2231 allows leaving out
both the charset and language without including any single quotes.
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.
Tim Peters [Fri, 7 Mar 2003 17:30:48 +0000 (17:30 +0000)]
Whitespace normalization.
Barry Warsaw [Fri, 7 Mar 2003 15:58:51 +0000 (15:58 +0000)]
whitespace normalization
Tim Peters [Fri, 7 Mar 2003 15:55:36 +0000 (15:55 +0000)]
This test relied on significant trailing whitespace in a string literal.
Evil.
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.
Barry Warsaw [Fri, 7 Mar 2003 15:43:17 +0000 (15:43 +0000)]
_write_headers(), _split_header(): All of the smarts for splitting
long header lines is now (properly) in the Header class. So we no
longer need _split_header() and we'll just defer to Header.encode()
when we have a plain string.
Barry Warsaw [Fri, 7 Mar 2003 15:39:37 +0000 (15:39 +0000)]
More internal refinements of the ascii splitting algorithm.
_encode_chunks(): Pass maxlinelen in instead of always using
self._maxlinelen, so we can adjust for shorter initial lines.
Pass this value through to _max_append().
encode(): Weave maxlinelen through to the _encode_chunks() call.
_split_ascii(): When recursively splitting a line on spaces
(i.e. lower level syntactic split), don't append the whole returned
string. Instead, split it on linejoiners and extend the lines up to
the last line (for proper packing). Calculate the linelen based on
the last element in the this list.
Jack Jansen [Fri, 7 Mar 2003 15:38:11 +0000 (15:38 +0000)]
Test_ioctl and test_tarfile are skipped on MacOS9.
Jack Jansen [Fri, 7 Mar 2003 15:37:31 +0000 (15:37 +0000)]
Removed unused variable
Jack Jansen [Fri, 7 Mar 2003 15:36:49 +0000 (15:36 +0000)]
Filter out macfs warning.
Tim Peters [Fri, 7 Mar 2003 15:36:41 +0000 (15:36 +0000)]
Somebody must not have run the test before checking this in -- it had
a fatal tab/space inconsistency under -tt.
Jack Jansen [Fri, 7 Mar 2003 15:36:13 +0000 (15:36 +0000)]
Got PythonStandalone to work again, mainly for debugging purposes (it's much easier to debug GUSI errors in a static build).
Barry Warsaw [Fri, 7 Mar 2003 15:35:47 +0000 (15:35 +0000)]
test_string_headerinst_eq(): Another Jason test :)
Guido van Rossum [Fri, 7 Mar 2003 15:13:17 +0000 (15:13 +0000)]
- The extended type structure used for heap types (new-style
classes defined by Python code using a class statement) is now
exported from object.h as PyHeapTypeObject. (SF patch #696193.)
Fred Drake [Fri, 7 Mar 2003 15:02:03 +0000 (15:02 +0000)]
Minor clarification about the ob_size field.
Jack Jansen [Fri, 7 Mar 2003 13:37:32 +0000 (13:37 +0000)]
Make tarfile raise ImportError on MacOS9. The pathname handling needs work, and I don't have time to fix it. I'll file a bug report.
Jack Jansen [Fri, 7 Mar 2003 13:27:53 +0000 (13:27 +0000)]
The filename fix of the previous checkin was complete bogus, the problem is elsewhere. Retracting.
Jack Jansen [Fri, 7 Mar 2003 12:50:45 +0000 (12:50 +0000)]
Two fixes to make this test pass on MacOS9:
- the test was sloppy about filenames: "0-REGTYPE-TEXT" was used where
the archive held "/0-REGTYPE-TEXT".
- tarfile extracts all files in binary mode, but the test expected to be able to
read and compare text files in text mode. Use universal text mode.
Jack Jansen [Fri, 7 Mar 2003 12:47:06 +0000 (12:47 +0000)]
Test that os.utime and os.chmod actually exist before using them.
Guido van Rossum [Fri, 7 Mar 2003 01:33:18 +0000 (01:33 +0000)]
Broke down and made it work for Python 2.0 and up. (Older versions
would have required refraining from using string methods -- too
painful.)
Changed the -s option so that multiple -s options are cumulative.
Skip Montanaro [Fri, 7 Mar 2003 00:47:40 +0000 (00:47 +0000)]
fix name of db2pickle
Raymond Hettinger [Thu, 6 Mar 2003 23:54:28 +0000 (23:54 +0000)]
SF patch #693753: fix for bug 639806: default for dict.pop
(contributed by Michael Stone.)
Tim Peters [Thu, 6 Mar 2003 23:41:58 +0000 (23:41 +0000)]
Repaired a misleading comment Barry inherited from me.
Jack Jansen [Thu, 6 Mar 2003 23:04:38 +0000 (23:04 +0000)]
First try to use the OSATerminology module to get the terminology
resources before reverting to manually reading the resources.
Unfortunately there is still a bug in here somewhere: it doesn't work
for all applications.
Jack Jansen [Thu, 6 Mar 2003 23:03:43 +0000 (23:03 +0000)]
Build the OSATerminology module on MacOSX.