[issue26543] [EASY] imaplib noop Debug: bytes vs Unicode bug in debug mode
Change by Sadhana Srinivasan : -- nosy: +rotuna nosy_count: 9.0 -> 10.0 pull_requests: +19013 pull_request: https://github.com/python/cpython/pull/19693 ___ Python tracker <https://bugs.python.org/issue26543> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23082] pathlib relative_to() can give confusing error message
Change by Sadhana Srinivasan : -- keywords: +patch pull_requests: +18945 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19611 ___ Python tracker <https://bugs.python.org/issue23082> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23082] pathlib relative_to() can give confusing error message
Sadhana Srinivasan added the comment: I'll work on this. I tried to come up with a single error message but having two different error messages seems like a better idea to me. One for when the path isn't a subpath and one for when absolute and relative paths are mixed. Basically to explain this: >>> Path("/Users/rotuna/Documents/cpython/Libs").relative_to(Path("./Libs")) Traceback (most recent call last): File "", line 1, in File "/Users/rotuna/Documents/cpython/Lib/pathlib.py", line 907, in relative_to raise ValueError("{!r} is not a subpath of{!r}. NOTE: If this is not true, use absolute paths" ValueError: '/Users/rotuna/Documents/cpython/Libs' does not start with 'Libs' -- nosy: +rotuna ___ Python tracker <https://bugs.python.org/issue23082> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com