[issue45226] Misleading error message when pathlib.Path.symlink_to() fails with permissions error

2021-09-21 Thread Maor Feldinger
Maor Feldinger added the comment: Oh I see what you mean, sorry about that, maybe the comperison to `os.symlink()` was wrong. It still feels wrong to me with since I am trying to make src symlink(point) to target and in the error message it looks like I am trying to do the other way around

[issue45226] Misleading error message when pathlib.Path.symlink_to() fails with permissions error

2021-09-16 Thread Maor Feldinger
Change by Maor Feldinger : -- components: +Library (Lib) ___ Python tracker <https://bugs.python.org/issue45226> ___ ___ Python-bugs-list mailing list Unsub

[issue45226] Misleading error message when pathlib.Path.symlink_to() fails with permissions error

2021-09-16 Thread Maor Feldinger
New submission from Maor Feldinger : Reproduction Steps: --- Create a symlink in a directory without permissions: >>> from pathlib import Path >>> >>> tar