Chris Jerdonek added the comment:

By the way, here is another (less) confusing error message:

    >>> Path("foo").relative_to("fo")
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File 
"/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/pathlib.py",
 line 806, in relative_to
        .format(str(self), str(formatted)))
    ValueError: 'foo' does not start with 'fo'

Without knowing that "foo" is a path, the message seems wrong.  If it said 
something like "Path 'foo' does not start with part 'fo'", it would be clearer.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23082>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to