]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Raymond Hettinger [Wed, 10 Sep 2003 18:45:55 +0000 (18:45 +0000)]
SF bug #803842: Wrong description of regexp concatenation
Raymond Hettinger [Wed, 10 Sep 2003 04:45:22 +0000 (04:45 +0000)]
SF bug #802302: Invalid documentation for dbhash.
The documentation severely departed for the actual implementation.
Raymond Hettinger [Wed, 10 Sep 2003 03:55:26 +0000 (03:55 +0000)]
SF patch #800899: Making "|" directive from REs a bit clearer.
Raymond Hettinger [Wed, 10 Sep 2003 03:31:47 +0000 (03:31 +0000)]
SF #792649: RESET_ERROR is not defined(logging module)
Raymond Hettinger [Wed, 10 Sep 2003 00:12:29 +0000 (00:12 +0000)]
Fix typo.
Raymond Hettinger [Tue, 9 Sep 2003 01:32:16 +0000 (01:32 +0000)]
SF #801306: Bad RE in scanf example
Raymond Hettinger [Tue, 9 Sep 2003 01:13:59 +0000 (01:13 +0000)]
SF bug #560286: Add docs for 'basestring'
Raymond Hettinger [Tue, 9 Sep 2003 00:07:44 +0000 (00:07 +0000)]
Add an example to address a common question of how to split iterators.
Raymond Hettinger [Mon, 8 Sep 2003 19:15:43 +0000 (19:15 +0000)]
Set the warnings stacklevel to two.
Raymond Hettinger [Mon, 8 Sep 2003 19:01:57 +0000 (19:01 +0000)]
Fix spacing markup and other sundries.
Raymond Hettinger [Mon, 8 Sep 2003 18:55:01 +0000 (18:55 +0000)]
Fix spacing markup and other sundries.
Raymond Hettinger [Mon, 8 Sep 2003 18:43:46 +0000 (18:43 +0000)]
Generalize the last change to check for other markup spacing errors.
Fred Drake [Mon, 8 Sep 2003 18:10:15 +0000 (18:10 +0000)]
backport from trunk:
- reorganize sections
- lots of markup changes
Raymond Hettinger [Mon, 8 Sep 2003 18:06:46 +0000 (18:06 +0000)]
texcheck.py checks for double word errors and \NULL markup.
Raymond Hettinger [Mon, 8 Sep 2003 17:36:11 +0000 (17:36 +0000)]
Check for \NULL markup errors and doubled words.
Raymond Hettinger [Sun, 7 Sep 2003 23:38:08 +0000 (23:38 +0000)]
Fix NULL markup.
Martin v. Löwis [Sun, 7 Sep 2003 20:43:24 +0000 (20:43 +0000)]
Only release buffer after file has been closed. Fixes #800824.
Fred Drake [Sun, 7 Sep 2003 02:35:25 +0000 (02:35 +0000)]
fix \NULL with following space and no {}
Fred Drake [Sun, 7 Sep 2003 02:34:58 +0000 (02:34 +0000)]
fix \NULL with following space and no {} (two instances)
Fred Drake [Sun, 7 Sep 2003 02:26:54 +0000 (02:26 +0000)]
backport Brett's markup fix from revision 1.28:
add missing {} after \NULL
Skip Montanaro [Sat, 6 Sep 2003 19:52:28 +0000 (19:52 +0000)]
**kwds arg was missing from __init__ for Dict{Reader,Writer} classes.
Fred Drake [Sat, 6 Sep 2003 06:42:42 +0000 (06:42 +0000)]
add missing dependency
Raymond Hettinger [Sat, 6 Sep 2003 05:48:07 +0000 (05:48 +0000)]
SF bug 799191: fix markup
Raymond Hettinger [Sat, 6 Sep 2003 05:36:56 +0000 (05:36 +0000)]
SF bug 799367: grammar error
Raymond Hettinger [Sat, 6 Sep 2003 04:40:29 +0000 (04:40 +0000)]
SF bug #801486: Markup error.
Fred Drake [Sat, 6 Sep 2003 03:48:16 +0000 (03:48 +0000)]
Elaborate the explanation of different flavors of _* identifiers.
Fixes SF bug #520325.
Jack Jansen [Fri, 5 Sep 2003 22:09:14 +0000 (22:09 +0000)]
As of 7B53 things seem to work smoothly.
Raymond Hettinger [Fri, 5 Sep 2003 21:40:30 +0000 (21:40 +0000)]
SF bug #801342: Bug (documentation or real, your choice) in random.sample.
random.sample() uses one of two algorithms depending on the ratio of the
sample size to the population size. One of the algorithms accepted any
iterable population argument so long as it defined __len__(). The other
had a stronger requirement that the population argument be indexable.
While it met the documentation specifications which insisted that the
population argument be a sequence, it made random.sample() less usable
with sets. So, the second algorithm was modified to coerce non-indexable
iterables and dictionaries into a tuple before proceeding.
Raymond Hettinger [Fri, 5 Sep 2003 14:38:30 +0000 (14:38 +0000)]
SF bug #800796: Difference between hash() and __hash__()
slice(5).__hash__() now raises a TypeError.
Martin v. Löwis [Thu, 4 Sep 2003 19:02:20 +0000 (19:02 +0000)]
Patch #788249: Pass an explicit buffer to setvbuf in PyFile_SetBufSize().
Fixes #603724.
Martin v. Löwis [Thu, 4 Sep 2003 18:52:07 +0000 (18:52 +0000)]
Patch #798202: detect redhat9 Tcl/Tk in configure script.
Martin v. Löwis [Thu, 4 Sep 2003 18:46:39 +0000 (18:46 +0000)]
Patch #794826: Add __file__ in dynamically loaded modules for multiple
interpreters. Fixes #698282.
Martin v. Löwis [Thu, 4 Sep 2003 18:30:15 +0000 (18:30 +0000)]
Patch #792338: Correct documentation for timetuple return type.
Martin v. Löwis [Thu, 4 Sep 2003 18:26:07 +0000 (18:26 +0000)]
Patch #798145: Return correct information from nl_langinfo(RADIXCHAR).
Martin v. Löwis [Wed, 3 Sep 2003 05:15:20 +0000 (05:15 +0000)]
Catch locale.error as well. Fixes #788378.
Martin v. Löwis [Wed, 3 Sep 2003 04:53:17 +0000 (04:53 +0000)]
Use de_DE in example, change message for unknown locale. Fixes #797447.
Barry Warsaw [Wed, 3 Sep 2003 04:22:39 +0000 (04:22 +0000)]
NEWS about email package 794466 patch.
Barry Warsaw [Wed, 3 Sep 2003 04:22:00 +0000 (04:22 +0000)]
test_get_param_with_semis_in_quotes(): Test case for SF bug #794466.
Backport candidate.
Barry Warsaw [Wed, 3 Sep 2003 04:21:29 +0000 (04:21 +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.
Barry Warsaw [Wed, 3 Sep 2003 03:25:27 +0000 (03:25 +0000)]
Document the Pynche patch.
Barry Warsaw [Wed, 3 Sep 2003 03:23:44 +0000 (03:23 +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.
(backported)
Raymond Hettinger [Tue, 2 Sep 2003 07:01:11 +0000 (07:01 +0000)]
Only apply case-insensitivity test on appropriate platforms.' test_filecmp.py
Raymond Hettinger [Tue, 2 Sep 2003 05:47:17 +0000 (05:47 +0000)]
SF bug #453515: filecmp.dircmp case sensitivity bug
Raymond Hettinger [Tue, 2 Sep 2003 04:24:34 +0000 (04:24 +0000)]
SF patch #798534: Windows os.popen needlessly gets a reference to tuple ()
(Contributed by Andrew Gaul.)
Fixes a minor leak.
Raymond Hettinger [Tue, 2 Sep 2003 04:19:02 +0000 (04:19 +0000)]
Fix failing test
Raymond Hettinger [Tue, 2 Sep 2003 02:34:12 +0000 (02:34 +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:10:09 +0000 (02:10 +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 [Mon, 1 Sep 2003 23:31:39 +0000 (23:31 +0000)]
SF patch #790443: add SafeConfigParser to __all__
(Contributed by George Yoshida.)
Raymond Hettinger [Mon, 1 Sep 2003 23:13:44 +0000 (23:13 +0000)]
Minor typo
Raymond Hettinger [Mon, 1 Sep 2003 22:52:14 +0000 (22:52 +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:17:18 +0000 (22:17 +0000)]
SF patch #798467: Update docstring of has_key for bool changes
(Contributed by George Yoshida.)
Jack Jansen [Sun, 31 Aug 2003 23:40:51 +0000 (23:40 +0000)]
First stab at build script for distribution for Panther. Unfortunately
at the moment it crashes the kernel:-)
Raymond Hettinger [Sun, 31 Aug 2003 05:46:43 +0000 (05:46 +0000)]
SF bug #797853: Small problems with the csv module's documentation
Raymond Hettinger [Sun, 31 Aug 2003 05:30:18 +0000 (05:30 +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:11:15 +0000 (05:11 +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:37:25 +0000 (04:37 +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:21:42 +0000 (04:21 +0000)]
SF bug 798006: Fix long option markup.
Raymond Hettinger [Sat, 30 Aug 2003 23:58:20 +0000 (23:58 +0000)]
Remove 'e.g.' from error message
Raymond Hettinger [Sat, 30 Aug 2003 23:35:56 +0000 (23:35 +0000)]
SF patch #797180: Bug 792656: slicing explained
Raymond Hettinger [Sat, 30 Aug 2003 23:24:37 +0000 (23:24 +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:16:59 +0000 (22:16 +0000)]
* Add news item for the previous bugfix
* Backport itertoolsmodule.c 1.19 to re-sync Py2.3.1 with Py2.4.
Raymond Hettinger [Sat, 30 Aug 2003 14:52:35 +0000 (14:52 +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 00:16:08 +0000 (00:16 +0000)]
SF bug #793826: using itertools.izip to mutate tuples
Avoid Armin Rigo's dastardly exercise in re-entrancy.
Raymond Hettinger [Sat, 30 Aug 2003 00:11:16 +0000 (00:11 +0000)]
For safety, replace a tuple entry before decreffing it.
Raymond Hettinger [Fri, 29 Aug 2003 23:13:16 +0000 (23:13 +0000)]
SF bug #793826: using itertools.izip to mutate tuples
Avoid Armin Rigo's dastardly exercise in re-entrancy.
Jack Jansen [Fri, 29 Aug 2003 22:46:25 +0000 (22:46 +0000)]
A makefile and setup script to create the bits that are part of
MacPython but not of Apple's Panther distribution: the waste module,
the IDE and BuildApplet applets.
Brett Cannon [Fri, 29 Aug 2003 02:34:22 +0000 (02:34 +0000)]
_strptime.srptime() escaped parentheses in the format string properly.
Closes bug #796149 .
Thomas Heller [Wed, 27 Aug 2003 20:21:06 +0000 (20:21 +0000)]
Fix typo in docstring: The switch is '-x', not '-s'.
Fred Drake [Wed, 27 Aug 2003 15:10:54 +0000 (15:10 +0000)]
remove extra word occurance; reported to webmaster
Thomas Heller [Wed, 27 Aug 2003 10:49:34 +0000 (10:49 +0000)]
Remove a typo.
Raymond Hettinger [Wed, 27 Aug 2003 05:08:19 +0000 (05:08 +0000)]
SF bug #795506: Wrong handling of string format code for float values.
Added missing support for '%F' as had been documented.
Jason Tishler [Tue, 26 Aug 2003 11:59:41 +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:04:22 +0000 (05:04 +0000)]
Make the derived tools amendable to cut and paste.
Raymond Hettinger [Mon, 25 Aug 2003 04:44:33 +0000 (04:44 +0000)]
Fixed doubled word typos.
Raymond Hettinger [Mon, 25 Aug 2003 04:34:46 +0000 (04:34 +0000)]
Fix double word typos.
Raymond Hettinger [Mon, 25 Aug 2003 03:31:05 +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:47:56 +0000 (03:47 +0000)]
Fix typo.
Thou shalt not count to two unless proceeding to the number three.
Raymond Hettinger [Sat, 23 Aug 2003 03:39:28 +0000 (03:39 +0000)]
Fix typo.
Raymond Hettinger [Fri, 22 Aug 2003 16:27:03 +0000 (16:27 +0000)]
Missing "if".
Barry Warsaw [Tue, 19 Aug 2003 04:56:46 +0000 (04:56 +0000)]
Backporting email 2.5.4 fixes from the trunk.
Barry Warsaw [Tue, 19 Aug 2003 04:51:25 +0000 (04:51 +0000)]
Update get_param() description to reflect changes to the docstring.
Barry Warsaw [Tue, 19 Aug 2003 04:50:31 +0000 (04:50 +0000)]
Describe the fix to the email package.
Walter Dörwald [Mon, 18 Aug 2003 18:34:09 +0000 (18:34 +0000)]
Backport checkin:
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:54:10 +0000 (17:54 +0000)]
Remove a stray single quote.
Raymond Hettinger [Sun, 17 Aug 2003 22:08:58 +0000 (22:08 +0000)]
Backport improvements to set.py so that the interface will remain
consistent across versions.
* 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.
* Added a PendingDeprecationWarning for 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.
Raymond Hettinger [Sun, 17 Aug 2003 21:29:32 +0000 (21:29 +0000)]
SF #784031: Byte-order bug in socket-module getaddrinfo.c
Fred Drake [Sat, 16 Aug 2003 06:31:21 +0000 (06:31 +0000)]
Adjust some horizontal indentation to be consistent with the style used
throughout the documentation.
Raymond Hettinger [Fri, 15 Aug 2003 21:14:51 +0000 (21:14 +0000)]
Make sets.py compatible with Py2.2
Walter Dörwald [Fri, 15 Aug 2003 17:36:25 +0000 (17:36 +0000)]
Backport checkin:
Make a copy of L before appending, so the global L remains
unchanged (and sys.gettotalrefcount() remains constant).
Fix a few typos.
Walter Dörwald [Fri, 15 Aug 2003 16:52:33 +0000 (16:52 +0000)]
Backport checkin:
Fix refcounting leak in charmaptranslate_lookup()
Walter Dörwald [Fri, 15 Aug 2003 16:27:32 +0000 (16:27 +0000)]
Backport checkin:
Fix another refcounting leak in PyUnicode_EncodeCharmap().
Walter Dörwald [Fri, 15 Aug 2003 15:01:26 +0000 (15:01 +0000)]
Backport checkin:
Fix another refcounting leak (in PyUnicode_DecodeUnicodeEscape()).
Michael W. Hudson [Fri, 15 Aug 2003 12:26:05 +0000 (12:26 +0000)]
Backport my fix to my fix:
My last fix left n used unitialized in tha a==b case.
Fix, by not using n at all in that case.
Walter Dörwald [Thu, 14 Aug 2003 21:00:28 +0000 (21:00 +0000)]
Backport checkin:
Fix refcount leak in the UnicodeError constructor:
When parsing the constructor arguments failed, a
reference to the argument tuple was leaked.
Walter Dörwald [Thu, 14 Aug 2003 20:26:44 +0000 (20:26 +0000)]
Backport checkins:
Fix refcount leak in PyUnicode_EncodeCharmap(). The bug surfaces
when an encoding error occurs and the callback name is unknown,
i.e. when the callback has to be called. The problem was that
the fact that the callback has already been looked up was only
recorded in a local variable in charmap_encoding_error(), because
charmap_encoding_error() got it's own copy of the errorHandler
pointer instead of a pointer to the pointer in
PyUnicode_EncodeCharmap().
Raymond Hettinger [Thu, 14 Aug 2003 20:01:40 +0000 (20:01 +0000)]
SF patch #787929: reflect the introduce of boolean type(libcfgparser.tex)
(Contributed by George Yoshida.)
Michael W. Hudson [Thu, 14 Aug 2003 17:25:59 +0000 (17:25 +0000)]
And backport-2-3-4:
Fix reference leak noted in test_types:
Check for a[:] = a _before_ calling PySequence_Fast on a.
Kurt B. Kaiser [Thu, 14 Aug 2003 15:15:02 +0000 (15:15 +0000)]
- IDLE didn't start correctly when Python was installed in "Program Files"
on W2K and XP. Python Bugs 780451, 784183