summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-03-28 19:16:10 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-03-28 19:16:10 (GMT)
commit0e9285845ee37fb24ccced8fbe8ef90c21d096ce (patch)
tree6a25427c80ae4e49c93e7cb48685b59fad6604ab /Doc
parenta31aa45fbf57eecea909049095db23467769ac86 (diff)
downloadcpython-0e9285845ee37fb24ccced8fbe8ef90c21d096ce.zip
cpython-0e9285845ee37fb24ccced8fbe8ef90c21d096ce.tar.gz
cpython-0e9285845ee37fb24ccced8fbe8ef90c21d096ce.tar.bz2
give os.symlink and os.link() better parameter names #5564
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/os.rst10
-rw-r--r--Doc/library/string.rst1
2 files changed, 7 insertions, 4 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index 74fca8a..bbe3b5c 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -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]])
diff --git a/Doc/library/string.rst b/Doc/library/string.rst
index 4c3be4f..40aa07c 100644
--- a/Doc/library/string.rst
+++ b/Doc/library/string.rst
@@ -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'.