On 11/27/2010 7:17 AM, Nick Coghlan wrote:
On Thu, Nov 25, 2010 at 4:12 PM, terry.reedy<python-check...@python.org> wrote:
The :class:`SequenceMatcher` class has this constructor:
-.. class:: SequenceMatcher(isjunk=None, a='', b='')
+.. class:: SequenceMatcher(isjunk=None, a='', b='', autojunk=True)
Optional argument *isjunk* must be ``None`` (the default) or a one-argument
function that takes a sequence element and returns true if and only if the
@@ -340,6 +349,9 @@
The optional arguments *a* and *b* are sequences to be compared; both
default to
empty strings. The elements of both sequences must be :term:`hashable`.
+ The optional argument *autojunk* can be used to disable the automatic junk
+ heuristic.
+
Catching up on checkins traffic, so a later checkin may already fix
this, but there should be a versionchanged tag in the docs to note
when the autojunk parameter was added.
Right. When S.C. forward-ported the 2.7 patch. he must have thought it
not needed and I missed the difference between the diffs. Will add note
in both places needed immediately.
Terry
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com