difflib.SequenceMatcher.get_grouped_opcodes()

get_grouped_opcodes(n=3)

Return a generator of groups with up to n lines of context.

Starting with the groups returned by get_opcodes(), this method splits out smaller change clusters and eliminates intervening ranges which have no changes.

The groups are returned in the same format as get_opcodes().

doc_python
2016-10-07 17:31:55
Comments
Leave a Comment

Please login to continue.