]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
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
Walter Dörwald [Tue, 12 Aug 2003 17:38:22 +0000 (17:38 +0000)]
Backport checkins:
* Enhance message for UnicodeEncodeError and UnicodeTranslateError.
If there is only one bad character it will now be printed in a
form that is a valid Python string.
* Add a unicode prefix to the characters in the UnicodeEncodeError
and UnicodeTranslateError message.
Raymond Hettinger [Tue, 12 Aug 2003 00:01:16 +0000 (00:01 +0000)]
SF patch#786531 'the the' typo. Contributed by George Yoshida
Raymond Hettinger [Mon, 11 Aug 2003 23:43:04 +0000 (23:43 +0000)]
SF patch#786531 'the the' typo. Contributed by George Yoshida
Michael W. Hudson [Mon, 11 Aug 2003 12:21:40 +0000 (12:21 +0000)]
Repeat my refcount & cut&paste fixes on the branch.
Jason Tishler [Mon, 11 Aug 2003 12:13:45 +0000 (12:13 +0000)]
Unconditionally opening the temp file in text mode causes this test to fail
under Cygwin. The attached patch corrects this problem.
I tested this patch under Red Hat Linux 8.0 too.
Jack Jansen [Mon, 11 Aug 2003 11:16:09 +0000 (11:16 +0000)]
Version number was wrong (2.3b1). Fixed.
Brett Cannon [Mon, 11 Aug 2003 07:21:03 +0000 (07:21 +0000)]
Add note of closing of bug #783952.
Brett Cannon [Mon, 11 Aug 2003 07:19:06 +0000 (07:19 +0000)]
Fix bug where handling issue of time.tzname[0] == time.tzname[1] and
time.daylight were all true. Add an explicit test for this issue.
Closes bug #783952 .
Raymond Hettinger [Sat, 9 Aug 2003 18:20:16 +0000 (18:20 +0000)]
SF bug #778964: bad seed in python 2.3 random
The default seed is time.time().
Multiplied by 256 before truncating so that fractional seconds are used.
This way, two consequetive calls to random.seed() are much more likely
to produce different sequences.
Martin v. Löwis [Sat, 9 Aug 2003 09:53:51 +0000 (09:53 +0000)]
Add HIDDEN. Fixes #777664.
Martin v. Löwis [Sat, 9 Aug 2003 09:53:51 +0000 (09:53 +0000)]
Add HIDDEN. Fixes #777664.
Martin v. Löwis [Sat, 9 Aug 2003 09:48:29 +0000 (09:48 +0000)]
Move initialization of sys.std{in,out}.encoding to Py_Initialize.
Verify that the encoding actually exists. Fixes #775985.
Martin v. Löwis [Sat, 9 Aug 2003 09:07:56 +0000 (09:07 +0000)]
Patch #771998: Put braces around variables.
Raymond Hettinger [Sat, 9 Aug 2003 04:38:25 +0000 (04:38 +0000)]
SF patch #783807: Clarify PySequence_Setitem ref counting
(Contributed by Jay T Miller.)
Kurt B. Kaiser [Sat, 9 Aug 2003 03:10:01 +0000 (03:10 +0000)]
IDLEfork Bug 782759 config-main.def user configuration doc incorrect
Raymond Hettinger [Fri, 8 Aug 2003 23:31:35 +0000 (23:31 +0000)]
Explain argument unpacking
Raymond Hettinger [Fri, 8 Aug 2003 12:22:30 +0000 (12:22 +0000)]
SF bug #770485: cStringIO does not set closed attr
Raymond Hettinger [Fri, 8 Aug 2003 11:05:59 +0000 (11:05 +0000)]
SF bug #775836: change 0,1 to False,True in dict.has_key doc
Raymond Hettinger [Fri, 8 Aug 2003 02:41:53 +0000 (02:41 +0000)]
Improve docs:
* Simplify the pure python examples
* Add a quantify() example
Brett Cannon [Fri, 8 Aug 2003 01:52:08 +0000 (01:52 +0000)]
Fix docstring for LocaleTime.
Fred Drake [Thu, 7 Aug 2003 16:10:28 +0000 (16:10 +0000)]
Fix hyperlinks and one class reference.
Backported from trunk, but to the right branch this time.
Fred Drake [Thu, 7 Aug 2003 16:05:08 +0000 (16:05 +0000)]
control where this lands by default in dev/doc/ on python.org,
but check it in on the right branch this time
Michael W. Hudson [Thu, 7 Aug 2003 15:08:55 +0000 (15:08 +0000)]
As penance for forgetting to flag my last checkins as bugfix candidates,
just do the backport.
These changes do not apply to release22-maint.
Martin v. Löwis [Thu, 7 Aug 2003 11:56:23 +0000 (11:56 +0000)]
Release host name memory. Fixes #783312.