[issue29657] os.symlink: FileExistsError shows wrong message

Yonatan Goldschmidt report at bugs.python.org
Sat May 1 10:08:17 EDT 2021


Yonatan Goldschmidt <yon.goldschmidt at gmail.com> added the comment:

Just reached this issue independently (spent a few minutes debugging an error message like "FileExistsError: [Errno 17] File exists: 'a' -> 'b'", where 'a' didn't exist...)

I agree with Rich on this - for me, the source of confusion was that the way Python uses the arrow notation is just swapped from how ls(1) uses it.

Stage is "patch review" but I couldn't find any PR for it; if we're good with Larry's solution then I'm happy to post a PR implementing it.

----------
nosy: +Yonatan Goldschmidt

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


More information about the Python-bugs-list mailing list