Steve Dower <steve.do...@python.org> added the comment:

The trailing colon is unnecessary, and likely to cause more issues, but the 
same thing occurs for Path('NUL').resolve()

This is probably best handled as issue37517, where you'll find more background 
on the error messages.

But I believe that p.resolve(strict=True) should not raise when open(p) will 
succeed, and p.resolve(strict=False) should not raise when open(p)  will 
succeed or raise a *NotFoundError subclass of OSError.

----------
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.7

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

Reply via email to