| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |
|
|
|
|
|
|
| |
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).
|
| | |
|
| |
|
|
| |
Avoid list as a variable name.
|
| |
|
|
|
| |
little value while introducing incompatability with the version
being bugfixed.
|
| |
|
|
| |
version check to mention that we support versions 3.2 - 4.2.
|
| | |
|
| |
|
|
| |
Creates a url that should always be invalid.
|
| | |
|
| | |
|
| |
|
|
|
| |
Add support for iterators and other mapping methods.
Convert tests to unittest format and expand their coverage.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| | |
|
| |
|
|
| |
Backport candidate.
|
| |
|
|
|
|
|
|
|
| |
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.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
| |
(Contributed by Alexander Belopolsky.)
Doctest would crash when encountering unbound methods:
class A:
def f(self): pass
class C(A):
g = A.f
|
| |
|
|
| |
(Contributed by George Yoshida.)
|
| |
|
|
|
|
| |
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.
|
| |
|
|
| |
* Backport itertoolsmodule.c 1.19 to re-sync Py2.3.1 with Py2.4.
|
| |
|
|
|
|
| |
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.
|
| |
|
|
| |
Avoid Armin Rigo's dastardly exercise in re-entrancy.
|
| |
|
|
| |
Closes bug #796149 .
|
| | |
|
| | |
|
| |
|
|
| |
Added missing support for '%F' as had been documented.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 a copy of L before appending, so the global L remains
unchanged (and sys.gettotalrefcount() remains constant).
Fix a few typos.
|
| |
|
|
| |
on W2K and XP. Python Bugs 780451, 784183
|
| |
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
|
| |
under Cygwin. The attached patch corrects this problem.
I tested this patch under Red Hat Linux 8.0 too.
|
| |
|
|
|
|
| |
time.daylight were all true. Add an explicit test for this issue.
Closes bug #783952 .
|
| |
|
|
|
|
|
| |
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.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
| |
just do the backport.
These changes do not apply to release22-maint.
|
| |
|
|
|
| |
in the middle of executing time.strptime . Added new tests for caching
mechanism; taken from 2.4 branch and tweaked appropriately.
|