[issue38081] Different behavior of os.path.realpath('nul') in 3.7 and 3.8
Steve Dower
report at bugs.python.org
Sun Sep 15 04:47:30 EDT 2019
Steve Dower <steve.dower at python.org> added the comment:
I added another PR with the additional error codes listed by Eryk Sun.
Theoretically we should be able to test most of them, but I haven't written those tests, and I'm not sure they'd prove enough to be worth the extra code. ntpath.realpath is a "best effort" function (realpath in all cases is, I guess), so given the choice between failing and returning a best-effort path, it's obviously better to go with the best-effort path.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38081>
_______________________________________
More information about the Python-bugs-list
mailing list