Commit Graph

8579 Commits

Author SHA1 Message Date
Barry Warsaw
8ea385f2d1 BaseServer, TCPServer: Fixed typo in class docstring. 2003-10-09 23:49:24 +00:00
Martin v. Löwis
ae50fcf27d Patch #817329: Use SC_OPEN_MAX to determine MAXFD. 2003-10-06 21:34:14 +00:00
Raymond Hettinger
c601117f38 SF bug #812202: randint is always even
* Extend rangrange() to return meaningful results when the range is
  larger than 2**53.  Only applies to the MersenneTwister.  WichmannHill
  was left alone in the absence of a proof showing how multiple calls
  could be combined to produce long bit streams.

* WichmannHill was missing from __all__.
2003-10-05 23:35:38 +00:00
Raymond Hettinger
bd79d846f4 Adopt Christian Stork's suggested argument order for quantifier examples.
Adopt Jeremy Fincher's suggested function name, "any", instead of "some".
2003-10-05 23:05:56 +00:00
Barry Warsaw
fcf9740208 GNUTranslations._parse(): Initialize local variable k so that if the
first line of a header section isn't an RFC-ish header, it's just
ignored instead of throwing an UnboundLocalError.

Backported.
2003-10-04 02:39:11 +00:00
Anthony Baxter
ea8c552c05 and another date 2003-09-23 08:12:13 +00:00
Raymond Hettinger
54ab431398 Backport Tim's fix to test_winsound.py
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).
2003-09-22 19:14:49 +00:00
Thomas Heller
4e13da1348 Let IDLE use the HTMLHelp docs, if found. 2003-09-22 14:56:11 +00:00
Walter Dörwald
b11a4327da Backport checkin:
Avoid list as a variable name.
2003-09-22 12:44:47 +00:00
Raymond Hettinger
733ca1da95 Removed the PendingDeprecation warning from sets.py because it adds
little value while introducing incompatability with the version
being bugfixed.
2003-09-22 04:42:56 +00:00
Gregory P. Smith
2c627c44f3 simplify some import statements and clean up a docstring and BerkeleyDB library
version check to mention that we support versions 3.2 - 4.2.
2003-09-21 23:18:29 +00:00
Raymond Hettinger
6a5596cc52 Backport Greg's patch (1.7 to 1.8) for backwards code compatability. 2003-09-21 04:51:46 +00:00
Raymond Hettinger
08ae590113 Backport Tim's fix to SF #809915.
Creates a url that should always be invalid.
2003-09-21 04:38:33 +00:00
Martin v. Löwis
2857ef50ba Patch #808362: Fix typos. 2003-09-20 11:09:06 +00:00
Martin v. Löwis
1ee77974d2 Patch #793559: Reset __starttext_tag. Fixes #709491. 2003-09-20 10:58:03 +00:00
Raymond Hettinger
4737992e8c Fix documentation bugs.
Add support for iterators and other mapping methods.
Convert tests to unittest format and expand their coverage.
2003-09-16 21:42:13 +00:00
Raymond Hettinger
675bac026e Backport addition of the __all__ attribute for unittest.py 2003-09-16 04:55:32 +00:00
Raymond Hettinger
9927588795 SF bug #804115: bad argument handling(unittest.py) 2003-09-13 02:59:00 +00:00
Martin v. Löwis
cf9dcc242b Patch #793021: Implement htmllib.HTMLParser.reset. Fixes #711632. 2003-09-12 16:37:45 +00:00
Raymond Hettinger
24af6b5b29 SF #792649: RESET_ERROR is not defined(logging module) 2003-09-10 03:31:47 +00:00
Raymond Hettinger
07759e3786 Set the warnings stacklevel to two. 2003-09-08 19:15:43 +00:00
Skip Montanaro
7b7a9fd7d2 **kwds arg was missing from __init__ for Dict{Reader,Writer} classes. 2003-09-06 19:52:28 +00:00
Raymond Hettinger
0b0aae087a 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.
2003-09-05 21:40:30 +00:00
Martin v. Löwis
02309684f7 Catch locale.error as well. Fixes #788378. 2003-09-03 05:15:20 +00:00
Barry Warsaw
90fc2aca00 test_get_param_with_semis_in_quotes(): Test case for SF bug #794466.
Backport candidate.
2003-09-03 04:22:00 +00:00