[Python-checkins] r70650 - in python/trunk/Doc/library: os.rst string.rst

benjamin.peterson python-checkins at python.org
Sat Mar 28 20:16:10 CET 2009


Author: benjamin.peterson
Date: Sat Mar 28 20:16:10 2009
New Revision: 70650

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

Modified:
   python/trunk/Doc/library/os.rst
   python/trunk/Doc/library/string.rst

Modified: python/trunk/Doc/library/os.rst
==============================================================================
--- python/trunk/Doc/library/os.rst	(original)
+++ python/trunk/Doc/library/os.rst	Sat Mar 28 20:16:10 2009
@@ -924,9 +924,10 @@
    .. 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 @@
       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]])

Modified: python/trunk/Doc/library/string.rst
==============================================================================
--- python/trunk/Doc/library/string.rst	(original)
+++ python/trunk/Doc/library/string.rst	Sat Mar 28 20:16:10 2009
@@ -243,6 +243,7 @@
 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'.


More information about the Python-checkins mailing list