/Tests/ArgumentExpansion/

summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-09-02 20:34:52 (GMT)
committerGeorg Brandl <georg@python.org>2009-09-02 20:34:52 (GMT)
commit1824415470243ab8fb08172e2b32b4efe73e0295 (patch)
tree6246f8f0cd792ee5325bb49a87e9e46969963dda /Doc
parent0bb1cc72c8e37a5ac53b800667693c4330beb5a3 (diff)
downloadcpython-1824415470243ab8fb08172e2b32b4efe73e0295.zip
cpython-1824415470243ab8fb08172e2b32b4efe73e0295.tar.gz
cpython-1824415470243ab8fb08172e2b32b4efe73e0295.tar.bz2
Switch more function arguments docs to new-style.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/os.path.rst2
-rw-r--r--Doc/library/os.rst30
-rw-r--r--Doc/library/ossaudiodev.rst1
-rw-r--r--Doc/library/parser.rst17
-rw-r--r--Doc/library/pdb.rst14
-rw-r--r--Doc/library/persistence.rst1
-rw-r--r--Doc/library/pickle.rst12
-rw-r--r--Doc/library/pickletools.rst5
-rw-r--r--Doc/library/pipes.rst1
-rw-r--r--Doc/library/pkgutil.rst1
-rw-r--r--Doc/library/poplib.rst8
-rw-r--r--Doc/library/pprint.rst15
-rw-r--r--Doc/library/profile.rst30
-rw-r--r--Doc/library/pty.rst1
-rw-r--r--Doc/library/pwd.rst1
-rw-r--r--Doc/library/py_compile.rst6
-rw-r--r--Doc/library/pyclbr.rst5
-rw-r--r--Doc/library/pydoc.rst1
-rw-r--r--Doc/library/pyexpat.rst3
-rw-r--r--Doc/library/python.rst1
-rw-r--r--Doc/library/queue.rst5
-rw-r--r--Doc/library/quopri.rst17
-rw-r--r--Doc/library/random.rst1
-rw-r--r--Doc/library/re.rst31
-rw-r--r--Doc/library/readline.rst1
-rw-r--r--Doc/library/reprlib.rst1
-rw-r--r--Doc/library/resource.rst1
-rw-r--r--Doc/library/rlcompleter.rst1
-rw-r--r--Doc/library/runpy.rst2
-rw-r--r--Doc/library/select.rst3
-rw-r--r--Doc/library/shelve.rst8
-rw-r--r--Doc/library/shlex.rst14
-rw-r--r--Doc/library/shutil.rst5
-rw-r--r--Doc/library/signal.rst18
-rw-r--r--Doc/library/site.rst5
-rw-r--r--Doc/library/smtplib.rst23
-rw-r--r--Doc/library/sndhdr.rst1
-rw-r--r--Doc/library/socket.rst1
-rw-r--r--Doc/library/socketserver.rst1
39 files changed, 134 insertions, 160 deletions
diff --git a/Doc/library/os.path.rst b/Doc/library/os.path.rst
index 6d177f8..8f82963 100644
--- a/Doc/library/os.path.rst
+++ b/Doc/library/os.path.rst
@@ -218,7 +218,7 @@ applications should use string objects to access all files.
links encountered in the path (if they are supported by the operating system).
-.. function:: relpath(path[, start])
+.. function:: relpath(path, start=None)
Return a relative filepath to *path* either from the current directory or from
an optional *start* point.
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index 9bed1ce..aa95d1d 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -204,18 +204,17 @@ process and user.
Return the current process's user id. Availability: Unix.
-.. function:: getenv(varname[, value])
+.. function:: getenv(key, default=None)
- Return the value of the environment variable *varname* if it exists, or *value*
- if it doesn't. *value* defaults to ``None``. Availability: most flavors of
- Unix, Windows.
+ Return the value of the environment variable *key* if it exists, or
+ *default* if it doesn't. Availability: most flavors of Unix, Windows.
-.. function:: putenv(varname, value)
+.. function:: putenv(key, value)
.. index:: single: environment variables; setting
- Set the environment variable named *varname* to the string *value*. Such
+ Set the environment variable named *key* to the string *value*. Such
changes to the environment affect subprocesses started with :func:`os.system`,
:func:`popen` or :func:`fork` and :func:`execv`. Availability: most flavors of
Unix, Windows.
@@ -326,11 +325,11 @@ process and user.
Unix.
-.. function:: unsetenv(varname)
+.. function:: unsetenv(key)
.. index:: single: environment variables; deleting
- Unset (delete) the environment variable named *varname*. Such changes to the
+ Unset (delete) the environment variable named *key*. Such changes to the
environment affect subprocesses started with :func:`os.system`, :func:`popen` or
:func:`fork` and :func:`execv`. Availability: most flavors of Unix, Windows.
@@ -847,15 +846,14 @@ Files and Directories
doesn't open the FIFO --- it just creates the rendezvous point.
-.. function:: mknod(filename[, mode=0o600, device])
+.. function:: mknod(filename[, mode=0o600[, device]])
Create a filesystem node (file, device special file or named pipe) named
- *filename*. *mode* specifies both the permissions to use and the type of node to
- be created, being combined (bitwise OR) with one of ``stat.S_IFREG``,
- ``stat.S_IFCHR``, ``stat.S_IFBLK``,
- and ``stat.S_IFIFO`` (those constants are available in :mod:`stat`).
- For ``stat.S_IFCHR`` and
- ``stat.S_IFBLK``, *device* defines the newly created device special file (probably using
+ *filename*. *mode* specifies both the permissions to use and the type of node
+ to be created, being combined (bitwise OR) with one of ``stat.S_IFREG``,
+ ``stat.S_IFCHR``, ``stat.S_IFBLK``, and ``stat.S_IFIFO`` (those constants are
+ available in :mod:`stat`). For ``stat.S_IFCHR`` and ``stat.S_IFBLK``,
+ *device* defines the newly created device special file (probably using
:func:`os.makedev`), otherwise it is ignored.
@@ -1123,7 +1121,7 @@ Files and Directories
Availability: Unix, Windows.
-.. function:: walk(top[, topdown=True [, onerror=None[, followlinks=False]]])
+.. function:: walk(top, topdown=True, onerror=None, followlinks=False)
.. index::
single: directory; walking
diff --git a/Doc/library/ossaudiodev.rst b/Doc/library/ossaudiodev.rst
index 3972f14..82a263f 100644
--- a/Doc/library/ossaudiodev.rst
+++ b/Doc/library/ossaudiodev.rst
@@ -1,4 +1,3 @@
-
:mod:`ossaudiodev` --- Access to OSS-compatible audio devices
=============================================================
diff --git a/Doc/library/parser.rst b/Doc/library/parser.rst