| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
| |
Instead of spaces between the filename and date (or whatever the string
is that follows the filename, if any) use tabs. This is what the unix
'diff' command does, for example, and difflib was intended to follow
the 'standard' way of doing diffs. This improves compatibility with
patch tools. The docs and examples are also changed to recommended that
the date format used be the ISO 8601 format, which is what modern diff
tools emit by default.
Patch by Anatoly Techtonik.
|
|
|
|
| |
characters.
|
| |
|
|
|
|
| |
warnings when running under -3.
|
| |
|
|
|
|
| |
describing match ranges.
|
| |
|
|
|
|
| |
characters (\0, \1)
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
adjacent triples in the result list describe non-adjacent matching
blocks. That's _nice_ to have, and Guido said he wanted it.
Not a bugfix candidate: Guido or not ;-), this changes visible
endcase semantics (note that some tests had to change), and
nothing about this was documented before. Since it was working
as designed, and behavior was consistent with the docs, it wasn't
"a bug".
|
|
|
|
|
|
| |
more comments about why it's this way at all; and removed what looked
like needless expense (sorting (i, j, k) triples directly should give
exactly the same order as sorting (i, (i, j, k)) pairs).
|
|
|
|
| |
Occurences in email and compiler were ignored due to backwards compat requirements.
|
|
|
|
|
| |
touch the recursion limit. The applied patch inlines the recursive
__helper method in a non-recursive way.
|
| |
|
|
|
|
| |
Simple correction from the code's author (Dan Gass).
|
| |
|
| |
|
|
|
|
|
| |
test depends on invisible trailing whitespace in .py files. The author will
have to repair that.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
that behaves as if both lists has an empty string in each of them.
Closes bug #979794 (and duplicate bug #980117).
|
|
|
|
| |
Reads better when the iterable is a generator expression.
|
| |
|
|
|
|
| |
From SF patch #852334.
|
| |
|
|
|
|
|
| |
Note, these tests were not getting exercised because
doctest skips over private functions.
|
|
|
|
| |
Backport candidate
|
| |
|
|
|
|
|
|
| |
* Simplified test for visible changes
* Improved variable names and line spacing
* Replaced dict(a=3) style with Py2.2 compatable {'a':3}
|
|
|
|
| |
Documentation update and NEWS item are forthcoming.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
This now does a dynamic analysis of which elements are so frequently
repeated as to constitute noise. The primary benefit is an enormous
speedup in find_longest_match, as the innermost loop can have factors
of 100s less potential matches to worry about, in cases where the
sequences have many duplicate elements. In effect, this zooms in on
sequences of non-ubiquitous elements now.
While I like what I've seen of the effects so far, I still consider
this experimental. Please give it a try!
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
PEP 285. Everything described in the PEP is here, and there is even
some documentation. I had to fix 12 unit tests; all but one of these
were printing Boolean outcomes that changed from 0/1 to False/True.
(The exception is test_unicode.py, which did a type(x) == type(y)
style comparison. I could've fixed that with a single line using
issubtype(x, type(y)), but instead chose to be explicit about those
places where a bool is expected.
Still to do: perhaps more documentation; change standard library
modules to return False/True from predicates.
|
|
|
|
|
| |
I left the email pkg alone; I'm not sure how Barry would like to handle
that.
|
| |
|
|
|
|
|
| |
restores the 2.1 ability of Tools/scripts/ndiff.py to start producing
output before the entire comparison is complete.
|
|
|
|
| |
David Goodger.
|
|
|
|
| |
extra backslash is getting displayed in the generated HTML.
|
|
|
|
|
| |
get_close_matches(): Do not use %-interpolation for strings when
concatenation is more efficient.
|
|
Guido told me to do this <wink>.
Greatly expanded docstrings, and fleshed out with examples.
New std test.
Added new get_close_matches() function for ESR.
Needs docs, but LaTeXification of the module docstring is all it needs.
\CVS: ----------------------------------------------------------------------
|