[issue39311] difflib pathlike support for {unified, context}_diff() {from, to}file

Raymond Hettinger report at bugs.python.org
Sun Jan 12 22:43:34 EST 2020


Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:

Elsewhere users of Path objects must explicitly coerce to str.  For example:  json.dumps(str(Path("example.py"))).   This makes good sense to me.  We don't want to add an dependency on pathlib just to recognize Path objects.

----------
nosy: +rhettinger
resolution:  -> rejected
stage:  -> resolved
status: open -> closed

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


More information about the Python-bugs-list mailing list