[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

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

2021-09-20 Thread Barney Gale
Barney Gale added the comment: `os.symlink()` and `pathlib.Path.symlink_to()` have reversed argument orders, but in the repro steps you're supplying arguments in the same order. -- nosy: +barneygale ___ Python tracker

[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 ___ ___ Python-bugs-list mailing list Unsubscribe:

[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 >>> >>> target = Path('/tmp/tmp/target') >>>