Commit 0e928584 authored by Benjamin Peterson's avatar Benjamin Peterson

give os.symlink and os.link() better parameter names #5564

parent a31aa45f
......@@ -924,9 +924,10 @@ Files and Directories
.. versionadded:: 2.3
.. function:: link(src, dst)
.. function:: link(source, link_name)
Create a hard link pointing to *src* named *dst*. Availability: Unix.
Create a hard link pointing to *source* named *link_name*. Availability:
Unix.
.. function:: listdir(path)
......@@ -1246,9 +1247,10 @@ Files and Directories
Added access to values as attributes of the returned object.
.. function:: symlink(src, dst)
.. function:: symlink(source, link_name)
Create a symbolic link pointing to *src* named *dst*. Availability: Unix.
Create a symbolic link pointing to *source* named *link_name*. Availability:
Unix.
.. function:: tempnam([dir[, prefix]])
......
......@@ -243,6 +243,7 @@ does an index lookup using :func:`__getitem__`.
Some simple format string examples::
"First, thou shalt count to {0}" # References first positional argument
"Bring me a {}" # Implicitly references the first positional argument
"My quest is {name}" # References keyword argument 'name'
"Weight in tons {0.weight}" # 'weight' attribute of first positional arg
"Units destroyed: {players[0]}" # First element of keyword argument 'players'.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment