]>
granicus.if.org Git - python/log
Fred Drake [Sat, 6 Sep 2003 01:10:14 +0000 (01:10 +0000)]
avoid spurious vertical whitespace preceeding heading which are marked
with a \label
Fred Drake [Fri, 5 Sep 2003 15:50:20 +0000 (15:50 +0000)]
markup updates
Fred Drake [Fri, 5 Sep 2003 15:43:58 +0000 (15:43 +0000)]
normalize whitespace; detabify
Fred Drake [Fri, 5 Sep 2003 15:43:00 +0000 (15:43 +0000)]
fix some nuissance formatting problems for the "alltt" environment;
there's still a bug for the environment, but that's worked around in
this change as well
Fred Drake [Fri, 5 Sep 2003 15:36:23 +0000 (15:36 +0000)]
normalize whitespace
Raymond Hettinger [Fri, 5 Sep 2003 14:27:30 +0000 (14:27 +0000)]
SF bug #800796: Difference between hash() and __hash__()
slice(5).__hash__() now raises a TypeError.
Fred Drake [Fri, 5 Sep 2003 14:06:35 +0000 (14:06 +0000)]
add index entry
Fred Drake [Fri, 5 Sep 2003 14:01:15 +0000 (14:01 +0000)]
fix minor markup nits
Fred Drake [Fri, 5 Sep 2003 13:59:10 +0000 (13:59 +0000)]
add a relevant "see also" link
Fred Drake [Fri, 5 Sep 2003 13:58:26 +0000 (13:58 +0000)]
make the padding inside a "See also" box more consistent around the
sides
Fred Drake [Fri, 5 Sep 2003 13:48:02 +0000 (13:48 +0000)]
clean up some markup
Fred Drake [Thu, 4 Sep 2003 22:21:17 +0000 (22:21 +0000)]
normalize whitespace
Fred Drake [Thu, 4 Sep 2003 22:16:45 +0000 (22:16 +0000)]
Suppress more online-only navigation in the printed HTML.
Fred Drake [Thu, 4 Sep 2003 21:25:03 +0000 (21:25 +0000)]
make sure cells are really generated for all table cells, even those
that are left empty
fixes first of the problems reported in SF bug #727692
Fred Drake [Thu, 4 Sep 2003 19:52:02 +0000 (19:52 +0000)]
adjust markup to avoid suppressing a word space in content
Fred Drake [Thu, 4 Sep 2003 19:30:15 +0000 (19:30 +0000)]
Make the redundent portion of the lower navigation area disappear from the
printed version for browsers that support "@media print" in CSS.
Martin v. Löwis [Thu, 4 Sep 2003 19:01:46 +0000 (19:01 +0000)]
Patch #788249: Pass an explicit buffer to setvbuf in PyFile_SetBufSize().
Fixes #603724. Will backport to 2.3.
Martin v. Löwis [Thu, 4 Sep 2003 18:50:54 +0000 (18:50 +0000)]
Patch #798202: detect redhat9 Tcl/Tk in configure script.
Will backport to 2.2.
Martin v. Löwis [Thu, 4 Sep 2003 18:45:59 +0000 (18:45 +0000)]
Patch #794826: Add __file__ in dynamically loaded modules for multiple
interpreters. Fixes #698282. Will backport to 2.3.
Martin v. Löwis [Thu, 4 Sep 2003 18:29:53 +0000 (18:29 +0000)]
Patch #792338: Correct documentation for timetuple return type.
Martin v. Löwis [Thu, 4 Sep 2003 18:24:47 +0000 (18:24 +0000)]
Patch #798145: Return correct information from nl_langinfo(RADIXCHAR).
Will backport to 2.3.
Jason Tishler [Thu, 4 Sep 2003 11:59:50 +0000 (11:59 +0000)]
Bug #794140: cygwin builds do not embed
The embed2.diff patch solves the user's problem by exporting the missing
symbols from the Python core so Python can be embedded in another Cygwin
application (well, at lest vim).
Jason Tishler [Thu, 4 Sep 2003 11:04:06 +0000 (11:04 +0000)]
This patch enables the building of Cygwin Python with a static core
which still supports shared extensions. It takes advantage the latest
Cygwin binutils (i.e.,
20030901 -1) which can export symbols from
executables:
http://cygwin.com/ml/cygwin-announce/2003-09/msg00002.html
Additionally, it finally lays to rest the following mailing list
subthread:
http://mail.python.org/pipermail/python-list/2002-May/102500.html
I tested the patch under Red Hat Linux 8.0 too
Martin v. Löwis [Wed, 3 Sep 2003 05:13:14 +0000 (05:13 +0000)]
Catch locale.error as well. Fixes #788378. Will backport to 2.3.
Martin v. Löwis [Wed, 3 Sep 2003 04:50:13 +0000 (04:50 +0000)]
Use de_DE in example, change message for unknown locale. Fixes #797447.
Will backport to 2.3.
Barry Warsaw [Wed, 3 Sep 2003 04:10:52 +0000 (04:10 +0000)]
test_get_param_with_semis_in_quotes(): Test case for SF bug #794466.
Backport candidate.
Barry Warsaw [Wed, 3 Sep 2003 04:09:49 +0000 (04:09 +0000)]
NEWS about email package 794466 patch.
Barry Warsaw [Wed, 3 Sep 2003 04:08:13 +0000 (04:08 +0000)]
A fix for parsing parameters when there are semicolons inside the
quotes. Fixes SF bug #794466, with the essential patch provided by
Stuart D. Gathman. Specifically,
_parseparam(), _get_params_preserve(): Use the parsing function that
takes quotes into account, as given (essentially) in the bug report's
test program.
Backport candidate.
Barry Warsaw [Wed, 3 Sep 2003 03:20:37 +0000 (03:20 +0000)]
Document the Pynche patch.
Barry Warsaw [Wed, 3 Sep 2003 03:15:50 +0000 (03:15 +0000)]
Fix for SF bug #780996, crash when no .pynche file exists and -d
option is not given. If dbfile isn't given and can't be retrieved
from the optionsdb, just initialize it to the first element in
RGB_TXT.
Backport candidate.
Fred Drake [Tue, 2 Sep 2003 16:01:07 +0000 (16:01 +0000)]
use the long names for re compilation options; this makes it easier to
figure out what the code is doing
Andrew M. Kuchling [Tue, 2 Sep 2003 11:52:06 +0000 (11:52 +0000)]
Modernize code a bit: use isinstance instead of type(); return True/False
Andrew M. Kuchling [Tue, 2 Sep 2003 11:44:44 +0000 (11:44 +0000)]
[Patch #759208] Fix has_key emulation to not raise KeyError
Raymond Hettinger [Tue, 2 Sep 2003 06:59:21 +0000 (06:59 +0000)]
Only apply case-insensitivity test on appropriate platforms.' test_filecmp.py
Raymond Hettinger [Tue, 2 Sep 2003 05:42:02 +0000 (05:42 +0000)]
SF bug #453515: filecmp.dircmp case sensitivity bug
Raymond Hettinger [Tue, 2 Sep 2003 02:32:54 +0000 (02:32 +0000)]
SF patch #798255: Document httplib.HTTPResponse.read "amt" argument
(Contributed by Jeff Epler.)
Raymond Hettinger [Tue, 2 Sep 2003 02:17:46 +0000 (02:17 +0000)]
SF 798269: bug fix for doctest (sf bug id: 798254
(Contributed by Alexander Belopolsky.)
Raymond Hettinger [Tue, 2 Sep 2003 02:09:05 +0000 (02:09 +0000)]
SF 798269: bug fix for doctest (sf bug id: 798254
(Contributed by Alexander Belopolsky.)
Doctest would crash when encountering unbound methods:
class A:
def f(self): pass
class C(A):
g = A.f
Raymond Hettinger [Tue, 2 Sep 2003 01:53:01 +0000 (01:53 +0000)]
SF patch #736962: Port tests to unittest (Part 2)
(Contributed by Walter Dörwald.)
* Convert test_slice.py to unittest format
* Expand the test coverage.
Raymond Hettinger [Mon, 1 Sep 2003 23:30:44 +0000 (23:30 +0000)]
SF patch #790443: add SafeConfigParser to __all__
(Contributed by George Yoshida.)
Raymond Hettinger [Mon, 1 Sep 2003 23:13:04 +0000 (23:13 +0000)]
Minor typo
Raymond Hettinger [Mon, 1 Sep 2003 22:50:52 +0000 (22:50 +0000)]
SF patch #791153: inconsistency with implementation(logging)
(Contributed by George Yoshida.)
Raymond Hettinger [Mon, 1 Sep 2003 22:34:31 +0000 (22:34 +0000)]
SF patch #798534: Windows os.popen needlessly gets a reference to tuple ()
(Contributed by Andrew Gaul.)
Fixes a minor leak.
Raymond Hettinger [Mon, 1 Sep 2003 22:25:41 +0000 (22:25 +0000)]
SF patch #798534: Windows os.popen needlessly gets a reference to tuple ()
(Contributed by Andrew Gaul.)
Fixes a minor leak.
Raymond Hettinger [Mon, 1 Sep 2003 22:17:18 +0000 (22:17 +0000)]
SF patch #798467: Update docstring of has_key for bool changes
(Contributed by George Yoshida.)
Raymond Hettinger [Mon, 1 Sep 2003 22:12:08 +0000 (22:12 +0000)]
SF patch #798467: Update docstring of has_key for bool changes
(Contributed by George Yoshida.)
Raymond Hettinger [Sun, 31 Aug 2003 05:44:54 +0000 (05:44 +0000)]
SF bug #797853: Small problems with the csv module's documentation
Raymond Hettinger [Sun, 31 Aug 2003 05:29:02 +0000 (05:29 +0000)]
SF bug #732120:An extended definition of "non-overlapping" would save time.
Clarified the meaning of non-overlapping in patterns with zero length
matches.
Raymond Hettinger [Sun, 31 Aug 2003 05:09:52 +0000 (05:09 +0000)]
SF patch #797157: Bug 794658: os.chmod docs, stat constants
(Contributed by Christos Georgiou.)
Reference the symbol definitions in the stat module.
Raymond Hettinger [Sun, 31 Aug 2003 04:35:24 +0000 (04:35 +0000)]
SF bug #785222: zlib monotonic test
For smaller datasets, it is not always true the increasing the compression
level always results in better compression. Removed the test which made
this invalid assumption.
Raymond Hettinger [Sun, 31 Aug 2003 04:20:12 +0000 (04:20 +0000)]
Fix long option markup.
Raymond Hettinger [Sat, 30 Aug 2003 23:57:36 +0000 (23:57 +0000)]
Remove 'e.g.' from error message
Raymond Hettinger [Sat, 30 Aug 2003 23:31:31 +0000 (23:31 +0000)]
SF patch #797180: Bug 792656: slicing explained
Raymond Hettinger [Sat, 30 Aug 2003 23:21:32 +0000 (23:21 +0000)]
SF patch #797868: Tutorial, sec. 5.1.4 could contain an extra example
(Revised from the original patch contributed by Michal Pasternak.)
Also, make a couple minor fixups elsewhere.
Raymond Hettinger [Sat, 30 Aug 2003 22:54:55 +0000 (22:54 +0000)]
SF patch #736962: Port tests to unittest
(Contributed by Walter Dörwald).
* Convert three test modules to unittest format.
* Expanded coverage in test_structseq.py.
* Raymond added a new test in test_sets.py
Raymond Hettinger [Sat, 30 Aug 2003 14:43:55 +0000 (14:43 +0000)]
SF bug 797650: Infinite loop in textwrap.py
When the indents were set to longer than the width and long word breaking
was enabled, an infinite loop would result because the inner loop did not
assure that at least one character was stripped off on every pass.
Raymond Hettinger [Sat, 30 Aug 2003 01:24:19 +0000 (01:24 +0000)]
Eliminate unnecessary eval() in tests
Raymond Hettinger [Sat, 30 Aug 2003 00:10:06 +0000 (00:10 +0000)]
For safety, replace a tuple entry before decreffing it.
Raymond Hettinger [Fri, 29 Aug 2003 23:09:58 +0000 (23:09 +0000)]
SF bug #793826: using itertools.izip to mutate tuples
Avoid Armin Rigo's dastardly exercise in re-entrancy.
Andrew M. Kuchling [Fri, 29 Aug 2003 18:50:59 +0000 (18:50 +0000)]
Rework previous fix slightly; the &0x20 test seems useless, and the isprint() check mustn't prevent the meta-bit check at the end
Andrew M. Kuchling [Fri, 29 Aug 2003 18:49:05 +0000 (18:49 +0000)]
Add tests for meta- bit set
Andrew M. Kuchling [Fri, 29 Aug 2003 18:40:03 +0000 (18:40 +0000)]
[Bug #790356] unctrl() doesn't work for full printable charset. Fix by Dave Cinege.
Andrew M. Kuchling [Fri, 29 Aug 2003 18:37:37 +0000 (18:37 +0000)]
Add simple unit test for ascii.unctrl() function
Andrew M. Kuchling [Fri, 29 Aug 2003 18:12:23 +0000 (18:12 +0000)]
[Bug #776542] open_https() generates a bad Authorization header because it calls .putheader() wrongly. Reported by Steffen Ries.
Andrew M. Kuchling [Fri, 29 Aug 2003 17:49:26 +0000 (17:49 +0000)]
[Bug #780231] One of the changes described in the 2.3 "What's New" document
actually occurred in 2.2. Move the description to whatsnew22.tex.
[Bugfix candidate -- I'll backport to 2.3 (another 2.2 bugfix seems unlikely)
Fred Drake [Fri, 29 Aug 2003 04:09:26 +0000 (04:09 +0000)]
fix minor syntactic faux pas
Brett Cannon [Fri, 29 Aug 2003 02:28:54 +0000 (02:28 +0000)]
Make sure parentheses are escaped when used in the format string.
Closes bug #796149 . Will be backported.
Gregory P. Smith [Thu, 28 Aug 2003 21:50:30 +0000 (21:50 +0000)]
Support DBEnv.set_shm_key() to allow multi-threaded multi-process
database environments to use shared memory on systems supporting it.
Jeremy Hylton [Thu, 28 Aug 2003 14:42:14 +0000 (14:42 +0000)]
Fix for SF bug [ 784075 ] Fatal Python error: unknown scope
Make sure the inner function is not compiled when there is a syntax
error in the default arguments.
Jeremy Hylton [Thu, 28 Aug 2003 02:09:26 +0000 (02:09 +0000)]
Fix SF bug [ 788011 ] compiler.compileFile fails on csv.py
Bug fix candidate.
Thomas Heller [Wed, 27 Aug 2003 20:19:35 +0000 (20:19 +0000)]
Fix typo in docstring: The switch is '-x', not '-s'.
Will backport to 2.3 myself.
Fred Drake [Wed, 27 Aug 2003 15:11:40 +0000 (15:11 +0000)]
remove extra word occurance; reported to webmaster
Thomas Heller [Wed, 27 Aug 2003 10:48:12 +0000 (10:48 +0000)]
Remove a typo. (Or is this some markup I don't understand? ;-)
Raymond Hettinger [Wed, 27 Aug 2003 04:55:52 +0000 (04:55 +0000)]
SF bug #795506: Wrong handling of string format code for float values.
Adding missing support for '%F'.
Will backport to 2.3.1.
Jason Tishler [Tue, 26 Aug 2003 11:59:27 +0000 (11:59 +0000)]
test_largefile can leave its temp file open if one of many tests fail. On
platforms (e.g., Cygwin) that are "particular" about open files, this will
cause other regression tests that use the same temp file to fail:
$ ./python.exe -E -tt Lib/test/regrtest.py -l
test_largefile test_mmap test_mutants
test_largefile
test test_largefile failed -- got -1794967295L, but expected 2500000001L
test_mmap
test test_mmap crashed -- exceptions.IOError: [Errno 13] Permission denied: '@test'
test_mutants
test test_mutants crashed -- exceptions.IOError: [Errno 13] Permission denied: '@test'
This patch solves the problem by adding missing "try/finally" blocks. Note
that the "large" size of this patch is due to many white space changes --
otherwise, the patch is small.
I tested this patch under Red Hat Linux 8.0 too.
Raymond Hettinger [Mon, 25 Aug 2003 05:06:09 +0000 (05:06 +0000)]
Make the derived tools amendable to cut and paste.
Raymond Hettinger [Mon, 25 Aug 2003 04:43:53 +0000 (04:43 +0000)]
Fix doubled word typos.
Raymond Hettinger [Mon, 25 Aug 2003 04:39:55 +0000 (04:39 +0000)]
Added doubled word warnings.
Raymond Hettinger [Mon, 25 Aug 2003 04:28:05 +0000 (04:28 +0000)]
Fix double word typos.
Raymond Hettinger [Mon, 25 Aug 2003 03:31:28 +0000 (03:31 +0000)]
SF bug #793702: Section 13.1 HTMLParser documentation error
The -- is special to TeX and was printing as just -.
Raymond Hettinger [Sat, 23 Aug 2003 03:49:08 +0000 (03:49 +0000)]
Fix typo.
Thou shalt not count to two unless proceeding to the number three.
Raymond Hettinger [Sat, 23 Aug 2003 03:38:11 +0000 (03:38 +0000)]
Fix typo.
Greg Ward [Sat, 23 Aug 2003 02:09:18 +0000 (02:09 +0000)]
Fix a loooong-standing brainfart: I got the site-packages path for
Python 1.5.2 wrong in the section on config files.
Thomas Heller [Wed, 20 Aug 2003 18:27:36 +0000 (18:27 +0000)]
Build the bzip2.lib as a custom pre-link step in MSVC.
Thomas Heller [Wed, 20 Aug 2003 17:27:42 +0000 (17:27 +0000)]
Opening the WISE script changes a few items:
I have a different WISE version, and it's installed in a different directory.
My sytem directory is somewhere else.
Barry Warsaw [Tue, 19 Aug 2003 04:26:59 +0000 (04:26 +0000)]
Update get_param() description to reflect changes to the docstring.
Barry Warsaw [Tue, 19 Aug 2003 04:05:25 +0000 (04:05 +0000)]
Bump the version number for the standalone mimelib package.
Barry Warsaw [Tue, 19 Aug 2003 03:59:09 +0000 (03:59 +0000)]
Describe the fix to the email package.
Barry Warsaw [Tue, 19 Aug 2003 03:54:24 +0000 (03:54 +0000)]
test_rfc2231_no_language_or_charset_in_filename(),
test_rfc2231_no_language_or_charset_in_boundary(),
test_rfc2231_no_language_or_charset_in_charset(): New tests for proper
decoding of some RFC 2231 headers.
Backport candidate (as was the Utils.py 1.25 change) to both Python
2.3.1 and 2.2.4 -- will do momentarily.
Barry Warsaw [Tue, 19 Aug 2003 03:53:02 +0000 (03:53 +0000)]
get_param(): Update the docstring to explain how CHARSET and LANGUAGE
can be None, and what to do in that situation.
get_filename(), get_boundary(), get_content_charset(): Make sure these
handle RFC 2231 headers without a CHARSET field.
Backport candidate (as was the Utils.py 1.25 change) to both Python
2.3.1 and 2.2.4 -- will do momentarily.
Barry Warsaw [Tue, 19 Aug 2003 03:49:34 +0000 (03:49 +0000)]
decode_rfc2231(): We need to urllib.unquote() the value even if the
charset and language fields are not present, e.g. as in:
title*0="This%20is%20encoded"
Tim Peters [Mon, 18 Aug 2003 23:52:09 +0000 (23:52 +0000)]
This started opening files in text mode by default in the 2.3 release,
which is a disaster on Windows. Restored the binary default of all
previous releases. Also minor code cleanups.
Bugfix candidate!
Walter Dörwald [Mon, 18 Aug 2003 18:28:45 +0000 (18:28 +0000)]
Fix a crash: when sq_item failed the code continued blindly and used the
NULL pointer. (Detected by Michael Hudson, patch provided by Neal Norwitz).
Fix refcounting leak in filtertuple().
Thomas Heller [Mon, 18 Aug 2003 17:53:33 +0000 (17:53 +0000)]
Remove a stray single quote.
Will backport to release23-maint.
Raymond Hettinger [Sun, 17 Aug 2003 21:28:39 +0000 (21:28 +0000)]
SF #784031: Byte-order bug in socket-module getaddrinfo.c
Raymond Hettinger [Sun, 17 Aug 2003 08:34:09 +0000 (08:34 +0000)]
Improvements to set.py:
* Relaxed the argument restrictions for non-operator methods. They now
allow any iterable instead of requiring a set. This makes the module
a little easier to use and paves the way for an efficient C
implementation which can take better advantage of iterable arguments
while screening out immutables.
* Deprecated Set.update() because it now duplicates Set.union_update()
* Adapted the tests and docs to include the above changes.
* Added more test coverage including testing identities and checking
to make sure non-restartable generators work as arguments.
Will backport to Py2.3.1 so that the interface remains consistent
across versions. The deprecation of update() will be changed to
a FutureWarning.
Fred Drake [Sat, 16 Aug 2003 06:30:47 +0000 (06:30 +0000)]
Adjust some horizontal indentation to be consistent with the style used
throughout the documentation.
Raymond Hettinger [Sat, 16 Aug 2003 00:59:59 +0000 (00:59 +0000)]
Keep doctests in sync with the docs.
Raymond Hettinger [Sat, 16 Aug 2003 00:56:40 +0000 (00:56 +0000)]
Incorporate documentation suggestions from feedback on comp.lang.python.
* Positive wording for the description of why < and > and = can all
be False.
* Move to a three column table format that puts long method names
side-by-side with their operator equivalents
* Mention that KeyError can be raised by Set.pop() and Set.remove().
* Minor tweaks to the examples.
Will backport as soon as Fred rebuilds the docs so I can confirm
the tables formatted properly
Raymond Hettinger [Fri, 15 Aug 2003 21:17:04 +0000 (21:17 +0000)]
Make sets.py compatible with Py2.2