]> granicus.if.org Git - python/commitdiff
Merge #15543: glossary entry for and 'universal newlines', and links to it.
authorR David Murray <rdmurray@bitdance.com>
Wed, 15 Aug 2012 15:11:27 +0000 (11:11 -0400)
committerR David Murray <rdmurray@bitdance.com>
Wed, 15 Aug 2012 15:11:27 +0000 (11:11 -0400)
Patch by Chris Jerdonek.

1  2 
Doc/glossary.rst
Doc/library/csv.rst
Doc/library/functions.rst
Doc/library/importlib.rst
Doc/library/io.rst
Doc/library/stdtypes.rst
Doc/library/subprocess.rst
Doc/library/zipfile.rst
Doc/whatsnew/2.3.rst
Doc/whatsnew/2.4.rst
Doc/whatsnew/2.5.rst

Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index 7557c928be3ac607aeb4ca303c799701b3d94181,899bd7c26bc0328a7f6c3e9304469e4084e415af..ff6bb9927b9a54a78e4541d67a1927897bf801d9
@@@ -276,18 -216,20 +276,21 @@@ default values. The arguments that are 
  
     *stdin*, *stdout* and *stderr* specify the executed program's standard input,
     standard output and standard error file handles, respectively.  Valid values
 -   are :data:`PIPE`, an existing file descriptor (a positive integer), an
 -   existing file object, and ``None``.  :data:`PIPE` indicates that a new pipe
 -   to the child should be created.  With the default settings of ``None``, no
 -   redirection will occur; the child's file handles will be inherited from the
 -   parent.  Additionally, *stderr* can be :data:`STDOUT`, which indicates that
 -   the stderr data from the child process should be captured into the same file
 -   handle as for stdout.
 +   are :data:`PIPE`, :data:`DEVNULL`, an existing file descriptor (a positive
 +   integer), an existing file object, and ``None``.  :data:`PIPE` indicates
 +   that a new pipe to the child should be created.  :data:`DEVNULL` indicates
 +   that the special file :data:`os.devnull` will be used.  With the default
 +   settings of ``None``, no redirection will occur; the child's file handles
 +   will be inherited from the parent.  Additionally, *stderr* can be
 +   :data:`STDOUT`, which indicates that the stderr data from the child
 +   process should be captured into the same file handle as for *stdout*.
  
+    .. index::
+       single: universal newlines; subprocess module
     If *universal_newlines* is ``True``, the file objects *stdin*, *stdout*
-    and *stderr* will be opened as text streams with universal newlines support,
-    using the encoding returned by :func:`locale.getpreferredencoding`.
+    and *stderr* will be opened as text streams in :term:`universal newlines`
+    mode using the encoding returned by :func:`locale.getpreferredencoding`.
     For *stdin*, line ending characters ``'\n'`` in the input will be converted
     to the default line separator :data:`os.linesep`.  For *stdout* and
     *stderr*, all line endings in the output will be converted to ``'\n'``.
Simple merge
Simple merge
Simple merge
Simple merge