os.symlink()
Diez B. Roggisch
deets at nospam.web.de
Mon Jul 28 05:41:20 EDT 2008
Nikolaus Rath wrote:
> Hello,
>
>>From `pydoc os`:
>
> symlink(...)
> symlink(src, dst)
>
> Create a symbolic link pointing to src named dst.
>
>
> Is there any reason why this is so deliberately confusing? Why is the
> target of the symlink, the think where it points *to*, called the
> `src`? It seems to me that the names of the parameters should be
> reversed.
I used the command the other day, and didn't feel the slightest confusion.
To me, the process of creating a symlink is like a "virtual copy". Which the
above parameter names reflect perfectly.
Diez
More information about the Python-list
mailing list