[New-bugs-announce] [issue38789] difflib lacks a way to check if results are empty

Simon Friedberger report at bugs.python.org
Wed Nov 13 10:59:15 EST 2019


New submission from Simon Friedberger <simon.nov2019 at a-oben.org>:

It seems there is no easy way to use difflib to show a diff but only when there actually are differences. The SequenceMatcher has ratio() but that isn't really available through Differ or any of the convenience functions. Vice versa, when using SequenceMatcher the pretty display is not available.

----------
components: Library (Lib)
messages: 356536
nosy: simon_
priority: normal
severity: normal
status: open
title: difflib lacks a way to check if results are empty
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38789>
_______________________________________


More information about the New-bugs-announce mailing list