summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* and another dateAnthony Baxter2003-09-231-1/+1
|
* Backport Tim's fix to test_winsound.pyRaymond Hettinger2003-09-221-1/+12
| | | | | | | | PlaySoundTest.test_alias_fallback(): Disabled this test, and explained why in a new comment. My home Win98SE box is one of the "real systems" alluded to (my system "default sound" appears to have vanished sometime in the last month, that's certainly not a Python bug, and the MS PlaySound docs are correct in their explanation of what happens then).
* Let IDLE use the HTMLHelp docs, if found.Thomas Heller2003-09-221-2/+7
|
* Backport checkin:Walter Dörwald2003-09-221-10/+10
| | | | Avoid list as a variable name.
* Removed the PendingDeprecation warning from sets.py because it addsRaymond Hettinger2003-09-221-4/+0
| | | | | little value while introducing incompatability with the version being bugfixed.
* simplify some import statements and clean up a docstring and BerkeleyDB libraryGregory P. Smith2003-09-214-15/+5
| | | | version check to mention that we support versions 3.2 - 4.2.
* Backport Greg's patch (1.7 to 1.8) for backwards code compatability.Raymond Hettinger2003-09-211-18/+30
|
* Backport Tim's fix to SF #809915.Raymond Hettinger2003-09-211-1/+8
| | | | Creates a url that should always be invalid.
* Patch #808362: Fix typos.Martin v. Löwis2003-09-201-1/+1
|
* Patch #793559: Reset __starttext_tag. Fixes #709491.Martin v. Löwis2003-09-201-1/+1
|
* Fix documentation bugs.Raymond Hettinger2003-09-162-74/+177
| | | | | Add support for iterators and other mapping methods. Convert tests to unittest format and expand their coverage.
* Backport addition of the __all__ attribute for unittest.pyRaymond Hettinger2003-09-162-1/+12
|
* SF bug #804115: bad argument handling(unittest.py)Raymond Hettinger2003-09-131-2/+2
|
* Patch #793021: Implement htmllib.HTMLParser.reset. Fixes #711632.Martin v. Löwis2003-09-121-0/+3
|
* SF #792649: RESET_ERROR is not defined(logging module)Raymond Hettinger2003-09-101-0/+4
|
* Set the warnings stacklevel to two.Raymond Hettinger2003-09-082-6/+6
|
* **kwds arg was missing from __init__ for Dict{Reader,Writer} classes.Skip Montanaro2003-09-062-4/+11
|
* SF bug #801342: Bug (documentation or real, your choice) in random.sample.Raymond Hettinger2003-09-052-0/+15
| | | | | | | | | | | | 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.
* Catch locale.error as well. Fixes #788378.Martin v. Löwis2003-09-031-1/+1
|
* test_get_param_with_semis_in_quotes(): Test case for SF bug #794466.Barry Warsaw2003-09-031-0/+7
| | | | Backport candidate.
* A fix for parsing parameters when there are semicolons inside theBarry Warsaw2003-09-031-1/+18
| | | | | | | | | 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.
* Only apply case-insensitivity test on appropriate platforms.' test_filecmp.pyRaymond Hettinger2003-09-021-2/+6
|
* SF bug #453515: filecmp.dircmp case sensitivity bugRaymond Hettinger2003-09-022-8/+12
|
* Fix failing testRaymond Hettinger2003-09-021-1/+1
|
* SF 798269: bug fix for doctest (sf bug id: 798254Raymond Hettinger2003-09-021-2/+3
| | | | | | | | | | | (Contributed by Alexander Belopolsky.) Doctest would crash when encountering unbound methods: class A: def f(self): pass class C(A): g = A.f
* SF patch #790443: add SafeConfigParser to __all__Raymond Hettinger2003-09-011-1/+1
| | | | (Contributed by George Yoshida.)
* SF bug #785222: zlib monotonic testRaymond Hettinger2003-08-311-11/+0
| | | | | | 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.
* * Add news item for the previous bugfixRaymond Hettinger2003-08-301-4/+13
| | | | * Backport itertoolsmodule.c 1.19 to re-sync Py2.3.1 with Py2.4.
* SF bug 797650: Infinite loop in textwrap.pyRaymond Hettinger2003-08-302-1/+11
| | | | | | 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.
* SF bug #793826: using itertools.izip to mutate tuplesRaymond Hettinger2003-08-291-1/+32
| | | | Avoid Armin Rigo's dastardly exercise in re-entrancy.
* _strptime.srptime() escaped parentheses in the format string properly.Brett Cannon2003-08-292-1/+10
| | | | Closes bug #796149 .
* Fix typo in docstring: The switch is '-x', not '-s'.Thomas Heller2003-08-271-1/+1
|
* Remove a typo.Thomas Heller2003-08-271-1/+1
|
* SF bug #795506: Wrong handling of string format code for float values.Raymond Hettinger2003-08-271-0/+1
| | | | Added missing support for '%F' as had been documented.
* test_largefile can leave its temp file open if one of many tests fail. OnJason Tishler2003-08-261-73/+81
| | | | | | | | | | | | | | | | | | | | 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.
* Backporting email 2.5.4 fixes from the trunk.Barry Warsaw2003-08-194-9/+51
|
* Backport improvements to set.py so that the interface will remainRaymond Hettinger2003-08-172-54/+195
| | | | | | | | | | | | | | | | | | 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.
* Make sets.py compatible with Py2.2Raymond Hettinger2003-08-151-1/+19
|
* Backport checkin:Walter Dörwald2003-08-151-4/+4
| | | | | | | Make a copy of L before appending, so the global L remains unchanged (and sys.gettotalrefcount() remains constant). Fix a few typos.
* - IDLE didn't start correctly when Python was installed in "Program Files"Kurt B. Kaiser2003-08-142-2/+18
| | | | on W2K and XP. Python Bugs 780451, 784183
* Backport checkins:Walter Dörwald2003-08-121-3/+35
| | | | | | | | * 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.
* Unconditionally opening the temp file in text mode causes this test to failJason Tishler2003-08-111-2/+5
| | | | | | under Cygwin. The attached patch corrects this problem. I tested this patch under Red Hat Linux 8.0 too.
* Fix bug where handling issue of time.tzname[0] == time.tzname[1] andBrett Cannon2003-08-112-5/+28
| | | | | | time.daylight were all true. Add an explicit test for this issue. Closes bug #783952 .
* SF bug #778964: bad seed in python 2.3 randomRaymond Hettinger2003-08-092-1/+4
| | | | | | | 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.
* Add HIDDEN. Fixes #777664.Martin v. Löwis2003-08-091-0/+2
|
* IDLEfork Bug 782759 config-main.def user configuration doc incorrectKurt B. Kaiser2003-08-091-4/+9
|
* SF bug #770485: cStringIO does not set closed attrRaymond Hettinger2003-08-081-0/+10
|
* Fix docstring for LocaleTime.Brett Cannon2003-08-081-2/+2
|
* As penance for forgetting to flag my last checkins as bugfix candidates,Michael W. Hudson2003-08-071-0/+7
| | | | | | just do the backport. These changes do not apply to release22-maint.
* Re-introduction of caching. Not thread-safe against the changing of localeBrett Cannon2003-08-062-3/+60
| | | | | in the middle of executing time.strptime . Added new tests for caching mechanism; taken from 2.4 branch and tweaked appropriately.