]> granicus.if.org Git - python/commitdiff
Demote warnings to notices where appropriate, following the goal that as few "red...
authorGeorg Brandl <georg@python.org>
Mon, 27 Apr 2009 15:29:09 +0000 (15:29 +0000)
committerGeorg Brandl <georg@python.org>
Mon, 27 Apr 2009 15:29:09 +0000 (15:29 +0000)
should clutter the docs as possible.  Part 1: stuff that gets merged to Py3k.

21 files changed:
Doc/c-api/intro.rst
Doc/documenting/markup.rst
Doc/extending/extending.rst
Doc/library/2to3.rst
Doc/library/aifc.rst
Doc/library/codeop.rst
Doc/library/configparser.rst
Doc/library/fileinput.rst
Doc/library/functions.rst
Doc/library/httplib.rst
Doc/library/inspect.rst
Doc/library/locale.rst
Doc/library/marshal.rst
Doc/library/os.path.rst
Doc/library/pickle.rst
Doc/library/string.rst
Doc/library/subprocess.rst
Doc/library/tabnanny.rst
Doc/library/unittest.rst
Doc/reference/compound_stmts.rst
Doc/reference/executionmodel.rst

index e8a3fc4851edb862597107eb0df17ff1704181a5..c56000efa4c48381fae6719e83b4f7aa23283b31 100644 (file)
@@ -44,7 +44,7 @@ This implies inclusion of the following standard headers: ``<stdio.h>``,
 ``<string.h>``, ``<errno.h>``, ``<limits.h>``, and ``<stdlib.h>`` (if
 available).
 
-.. warning::
+.. note::
 
    Since Python may define some pre-processor definitions which affect the standard
    headers on some systems, you *must* include :file:`Python.h` before any standard
index 3ca8983ee1fdb94722a4465226e05e7b47dec0ce..1d1023a5d13d9d3e7c15c0b618734724083cd303 100644 (file)
@@ -594,11 +594,11 @@ units as well as normal text:
 
 .. describe:: warning
 
-   An important bit of information about an API that a user should be very aware
-   of when using whatever bit of API the warning pertains to.  The content of
-   the directive should be written in complete sentences and include all
-   appropriate punctuation. This differs from ``note`` in that it is recommended
-   over ``note`` for information regarding security.
+   An important bit of information about an API that a user should be aware of
+   when using whatever bit of API the warning pertains to.  The content of the
+   directive should be written in complete sentences and include all appropriate
+   punctuation.  This should only be chosen over ``note`` for information
+   regarding the possibility of crashes, data loss, or security implications.
 
 .. describe:: versionadded
 
index b3ceb944f0bf0a1f6012f86a2980fd749f6eae09..d052ec24c65d8fa102b149a73e0b6a312f09d84e 100644 (file)
@@ -47,7 +47,7 @@ The first line of our file can be::
 which pulls in the Python API (you can add a comment describing the purpose of
 the module and a copyright notice if you like).
 
-.. warning::
+.. note::
 
    Since Python may define some pre-processor definitions which affect the standard
    headers on some systems, you *must* include :file:`Python.h` before any standard
index 7011f92b2baae107f81a4205b32dfc5a7433214f..90284afa1c6dce0eee4174fd429da5ccdd3c3361 100644 (file)
@@ -354,7 +354,7 @@ and off individually.  They are described here in more detail.
 .. moduleauthor:: Collin Winter
 
 
-.. warning::
+.. note::
 
    The :mod:`lib2to3` API should be considered unstable and may change
    drastically in the future.
index e3bb51a65c7b363c9d3582d4859859152a1b59e0..062f1f21d2442a314592f112876439244b6b53c5 100644 (file)
@@ -1,4 +1,3 @@
-
 :mod:`aifc` --- Read and write AIFF and AIFC files
 ==================================================
 
@@ -16,10 +15,11 @@ AIFF is Audio Interchange File Format, a format for storing digital audio
 samples in a file.  AIFF-C is a newer version of the format that includes the
 ability to compress the audio data.
 
-.. warning::
+.. note::
 
    Some operations may only work under IRIX; these will raise :exc:`ImportError`
-   when attempting to import the :mod:`cl` module, which is only available on IRIX.
+   when attempting to import the :mod:`cl` module, which is only available on
+   IRIX.
 
 Audio files have a number of parameters that describe the audio data. The
 sampling rate or frame rate is the number of times per second the sound is
index 39981cab0d5c05cddb776522aa3d836289a0945f..674c51fc4b12ff435fa0d7304c12cd1677914058 100644 (file)
@@ -42,7 +42,7 @@ To do just the former:
    (``'single'``, the default) or as an :term:`expression` (``'eval'``).  Any
    other value will cause :exc:`ValueError` to  be raised.
 
-   .. warning::
+   .. note::
 
       It is possible (but not likely) that the parser stops parsing with a
       successful outcome before reaching the end of the source; in this case,
index 0c5bb15ba494389cd38644096b1ddbd281f99a87..2eeefb0cd63b744fdfefdbccefcb449a279f41a7 100644 (file)
@@ -27,10 +27,10 @@ structure similar to what you would find on Microsoft Windows INI files.  You
 can use this to write Python programs which can be customized by end users
 easily.
 
-.. warning::
+.. note::
 
-   This library does *not* interpret or write the value-type prefixes used in the
-   Windows Registry extended version of INI syntax.
+   This library does *not* interpret or write the value-type prefixes used in
+   the Windows Registry extended version of INI syntax.
 
 The configuration file consists of sections, led by a ``[section]`` header and
 followed by ``name: value`` entries, with continuations in the style of
index 269d8560f6eb50e769031cfd5c5023a20ee04b9b..3253a07b417d4a3867589da21a8d7dc9a84186ba 100644 (file)
@@ -150,7 +150,7 @@ and the backup file remains around; by default, the extension is ``'.bak'`` and
 it is deleted when the output file is closed.  In-place filtering is disabled
 when standard input is read.
 
-.. warning::
+.. note::
 
    The current implementation does not work for MS-DOS 8+3 filesystems.
 
index 078cfad6eeb7eaf8f5c9c3110ef05222aec7cbc9..9eaffab0d254d0af7fef1ab1ae8efff35849bc74 100644 (file)
@@ -364,7 +364,7 @@ available.  They are listed here in alphabetical order.
    If both dictionaries are omitted, the expression is executed in the environment
    where :func:`execfile` is called.  The return value is ``None``.
 
-   .. warning::
+   .. note::
 
       The default *locals* act as described for function :func:`locals` below:
       modifications to the default *locals* dictionary should not be attempted.  Pass
@@ -633,7 +633,7 @@ available.  They are listed here in alphabetical order.
 
    Update and return a dictionary representing the current local symbol table.
 
-   .. warning::
+   .. note::
 
       The contents of this dictionary should not be modified; changes may not affect
       the values of local variables used by the interpreter.
@@ -1363,7 +1363,7 @@ available.  They are listed here in alphabetical order.
    else that has a :attr:`__dict__` attribute), returns a dictionary corresponding
    to the object's symbol table.
 
-   .. warning::
+   .. note::
 
       The returned dictionary should not be modified:
       the effects on the corresponding symbol table are undefined. [#]_
index 874fd54aeeb00e645e0fbbca493d7ec59eb76671..e48c95c732d281a35d7d508b770596d1b93e2e75 100644 (file)
@@ -68,9 +68,9 @@ The module provides the following classes:
    formatted file that contains your private key. *cert_file* is a PEM formatted
    certificate chain file.
 
-   .. warning::
+   .. note::
 
-      This does not do any certificate verification!
+      This does not do any certificate verification.
 
    .. versionadded:: 2.0
 
index 5af020e9e766d111269495c098f6844fb024d95d..bea12c9f634bf5157203643d721d1dcd4bf63527 100644 (file)
@@ -510,7 +510,7 @@ six items: the frame object, the filename, the line number of the current line,
 the function name, a list of lines of context from the source code, and the
 index of the current line within that list.
 
-.. warning::
+.. note::
 
    Keeping references to frame objects, as found in the first element of the frame
    records these functions return, can cause your program to create reference
index 750fb2e1a329af60b5a36f0aec34b135a3e52be4..0366d7796653d7b72264f0822058569712809505 100644 (file)
@@ -398,7 +398,7 @@ descriptions are taken from the corresponding description in the GNU C library.
 
    Return name of the n-th day of the week.
 
-   .. warning::
+   .. note::
 
       This follows the US convention of :const:`DAY_1` being Sunday, not the
       international convention (ISO 8601) that Monday is the first day of the week.
@@ -434,7 +434,7 @@ descriptions are taken from the corresponding description in the GNU C library.
    Return a regular expression that can be used with the regex function to
    recognize a positive response to a yes/no question.
 
-   .. warning::
+   .. note::
 
       The expression is in the syntax suitable for the :cfunc:`regex` function from
       the C library, which might differ from the syntax used in :mod:`re`.
index a9d6ea823f445d7e3fd30b8cf82e578dbb8a1b31..84fb138bfba9005c1d0d31e2125d290d086089dd 100644 (file)
@@ -85,7 +85,7 @@ The module defines these functions:
    file must be an open file object opened in binary mode (``'rb'`` or
    ``'r+b'``).
 
-   .. warning::
+   .. note::
 
       If an object containing an unsupported type was marshalled with :func:`dump`,
       :func:`load` will substitute ``None`` for the unmarshallable type.
index 0e7f3765168837cb52699cad14a510eb001c978f..2075468d1c816961d916d21a2d402951b2e37a28 100644 (file)
@@ -10,7 +10,7 @@ This module implements some useful functions on pathnames. To read or
 write files see :func:`open`, and for accessing the filesystem see the
 :mod:`os` module.
 
-.. warning::
+.. note::
 
    On Windows, many of these functions do not properly support UNC pathnames.
    :func:`splitunc` and :func:`ismount` do handle them correctly.
@@ -317,7 +317,7 @@ write files see :func:`open`, and for accessing the filesystem see the
       identify them with ``os.path.islink(file)`` and ``os.path.isdir(file)``, and
       invoke :func:`walk` as necessary.
 
-   .. warning::
+   .. note::
 
       This function is deprecated and has been removed in 3.0 in favor of
       :func:`os.walk`.
index f6b7ae42b303a4838caf957b4761bafd5723de10..a3e5ad4765400ec6ab640a0ce23f3a20cc358cbc 100644 (file)
@@ -77,8 +77,8 @@ The :mod:`pickle` module differs from :mod:`marshal` several significant ways:
 .. warning::
 
    The :mod:`pickle` module is not intended to be secure against erroneous or
-   maliciously constructed data.  Never unpickle data received from an untrusted or
-   unauthenticated source.
+   maliciously constructed data.  Never unpickle data received from an untrusted
+   or unauthenticated source.
 
 Note that serialization is a more primitive notion than persistence; although
 :mod:`pickle` reads and writes file objects, it does not handle the issue of
@@ -453,7 +453,7 @@ Pickling and unpickling normal class instances
    :meth:`__getstate__` and :meth:`__setstate__`, the state object needn't be a
    dictionary and these methods can do what they want. [#]_
 
-   .. warning::
+   .. note::
 
       For :term:`new-style class`\es, if :meth:`__getstate__` returns a false
       value, the :meth:`__setstate__` method will not be called.
index 6ca08739db6a9c0ab27f7d7d41f144a9395ce2f0..d17ac7a3ccd659a2d9cd7364da9b4f48ed3cbd21 100644 (file)
@@ -599,7 +599,7 @@ They are not available as string methods.
    map each character in *from* into the character at the same position in *to*;
    *from* and *to* must have the same length.
 
-   .. warning::
+   .. note::
 
       Don't use strings derived from :const:`lowercase` and :const:`uppercase` as
       arguments; in some locales, these don't have the same length.  For case
index 685e94199ad9ec8a142cc72e1998eb68132db7bd..c95566bf20e8fe538795ab7bf03a56323709990c 100644 (file)
@@ -301,10 +301,10 @@ The following attributes are also available:
 
 .. warning::
 
-   Use :meth:`communicate` rather than :meth:`.stdin.write`,
-   :meth:`.stdout.read` or :meth:`.stderr.read` to avoid deadlocks due
-   to any of the other OS pipe buffers filling up and blocking the child
-   process.
+   Use :meth:`communicate` rather than :attr:`.stdin.write <stdin>`,
+   :attr:`.stdout.read <stdout>` or :attr:`.stderr.read <stderr>` to avoid
+   deadlocks due to any of the other OS pipe buffers filling up and blocking the
+   child process.
 
 
 .. attribute:: Popen.stdin
index 875f3aac86e3c870e1f583321e205c8d0677e607..b86971df33b3b9d3cd75eeb61c6ca7527be7f35b 100644 (file)
@@ -1,4 +1,3 @@
-
 :mod:`tabnanny` --- Detection of ambiguous indentation
 ======================================================
 
@@ -14,9 +13,9 @@ For the time being this module is intended to be called as a script. However it
 is possible to import it into an IDE and use the function :func:`check`
 described below.
 
-.. warning::
+.. note::
 
-   The API provided by this module is likely to change  in future releases; such
+   The API provided by this module is likely to change in future releases; such
    changes may not be backward compatible.
 
 
index 50314cd85ce0af2ca4b4b9aff7a4b3318d85e325..6b19c29ace451c35875b5e89504f572842f9f58b 100644 (file)
@@ -1086,7 +1086,7 @@ Loading and running tests
       creates an instance of the class for each test method defined for the
       class.
 
-      .. warning::
+      .. note::
 
          While using a hierarchy of :class:`TestCase`\ -derived classes can be
          convenient in sharing fixtures and helper functions, defining test
index 4d7addbbd2baa99b4a149ec0c70981b395eb0321..3c716b286f000ccec3b81efa3a6324aef0c3cc95 100644 (file)
@@ -178,7 +178,7 @@ function :func:`range` returns a sequence of integers suitable to emulate the
 effect of Pascal's ``for i := a to b do``; e.g., ``range(3)`` returns the list
 ``[0, 1, 2]``.
 
-.. warning::
+.. note::
 
    .. index::
       single: loop; over mutable sequence
index 05f8b928c426a7c2cdbb757202113193d0b585ad..9690a9391b7672c6266763b0fe0d3d1297828e87 100644 (file)
@@ -231,7 +231,7 @@ Exceptions can also be identified by strings, in which case the
 :keyword:`except` clause is selected by object identity.  An arbitrary value can
 be raised along with the identifying string which can be passed to the handler.
 
-.. warning::
+.. note::
 
    Messages to exceptions are not part of the Python API.  Their contents may
    change from one version of Python to the next without warning and should not be