]> granicus.if.org Git - python/commitdiff
remove some old versionchanged and versionadded directives
authorBenjamin Peterson <benjamin@python.org>
Thu, 24 Apr 2008 02:34:53 +0000 (02:34 +0000)
committerBenjamin Peterson <benjamin@python.org>
Thu, 24 Apr 2008 02:34:53 +0000 (02:34 +0000)
30 files changed:
Doc/library/_winreg.rst
Doc/library/basehttpserver.rst
Doc/library/cmath.rst
Doc/library/ctypes.rst
Doc/library/datetime.rst
Doc/library/decimal.rst
Doc/library/difflib.rst
Doc/library/doctest.rst
Doc/library/fractions.rst
Doc/library/functions.rst
Doc/library/heapq.rst
Doc/library/itertools.rst
Doc/library/logging.rst
Doc/library/math.rst
Doc/library/operator.rst
Doc/library/pickletools.rst
Doc/library/plistlib.rst
Doc/library/pprint.rst
Doc/library/py_compile.rst
Doc/library/pyexpat.rst
Doc/library/queue.rst
Doc/library/random.rst
Doc/library/sched.rst
Doc/library/select.rst
Doc/library/shutil.rst
Doc/library/signal.rst
Doc/library/sqlite3.rst
Doc/library/subprocess.rst
Doc/library/sys.rst
Doc/library/zipfile.rst

index 7ce34b4d8e7d1e258e99cd5e4ac8b4cfb5215d73..a4f38790fbc71cbc722dfabe26733660d2ce4572 100644 (file)
@@ -138,8 +138,6 @@ This module offers the following functions:
       >>> ExpandEnvironmentStrings(u"%windir%")
       u"C:\\Windows"
 
-   .. versionadded:: 2.6
-
 
 .. function:: FlushKey(key)
 
@@ -437,5 +435,4 @@ handle, and also disconnect the Windows handle from the handle object.
 
    will automatically close *key* when control leaves the :keyword:`with` block.
 
-   .. versionadded:: 2.6
 
index 9ac3aaf56fbf3ebb95d0d5e7366e8bfab772b78c..b527163bf041a5a20c6a1fcbdb98f1f157af39f0 100644 (file)
@@ -127,9 +127,6 @@ to a handler.  Code to create and run the server looks like this::
    Specifies the Content-Type HTTP header of error responses sent to the client.
    The default value is ``'text/html'``.
 
-   .. versionadded:: 2.6
-      Previously, the content type was always ``'text/html'``.
-
 
 .. attribute:: BaseHTTPRequestHandler.protocol_version
 
index f78f69c5bde6f3d6e617ff4acff3a581bc68ca53..83a220c9241a37e19c8c9125076ad075a2eff4b5 100644 (file)
@@ -65,8 +65,6 @@ Definition::
 
    Return phase, also known as the argument, of a complex.
 
-   .. versionadded:: 2.6
-
 
 .. function:: polar(x)
 
@@ -75,16 +73,12 @@ Definition::
    *r* and *phi*. *r* is the distance from 0 and *phi* the phase 
    angle.
 
-   .. versionadded:: 2.6
-
 
 .. function:: rect(r, phi)
 
    Convert from polar coordinates to rectangular coordinates and return
    a :class:`complex`.
 
-   .. versionadded:: 2.6
-
 
 
 cmath functions
@@ -115,9 +109,6 @@ cmath functions
    continuous from the right.  The other extends from ``-1j`` along
    the imaginary axis to ``-∞j``, continuous from the left.
 
-   .. versionchanged:: 2.6
-      branch cuts moved to match those recommended by the C99 standard
-
 
 .. function:: atan(x)
 
@@ -126,9 +117,6 @@ cmath functions
    other extends from ``-1j`` along the imaginary axis to ``-∞j``, continuous
    from the left.
 
-   .. versionchanged:: 2.6
-      direction of continuity of upper cut reversed
-
 
 .. function:: atanh(x)
 
@@ -137,9 +125,6 @@ cmath functions
    other extends from ``-1`` along the real axis to ``-∞``, continuous from
    above.
 
-   .. versionchanged:: 2.6
-      direction of continuity of right cut reversed
-
 
 .. function:: cos(x)
 
@@ -161,15 +146,11 @@ cmath functions
    Return *True* if the real or the imaginary part of x is positive
    or negative infinity.
 
-   .. versionadded:: 2.6
-
 
 .. function:: isnan(x)
 
    Return *True* if the real or imaginary part of x is not a number (NaN).
 
-   .. versionadded:: 2.6
-
 
 .. function:: log(x[, base])
 
index b2d672ff38098fa6353b9510331f2b5e91339b94..7b95ba13e646692a9ce61de4838cbdb51ea17d54 100644 (file)
@@ -2004,14 +2004,11 @@ Fundamental data types
 
 .. class:: _SimpleCData
 
-   This non-public class is the base class of all fundamental ctypes data types. It
-   is mentioned here because it contains the common attributes of the fundamental
-   ctypes data types.  ``_SimpleCData`` is a subclass of ``_CData``, so it inherits
-   their methods and attributes.
-
-   .. versionchanged:: 2.6
-      ctypes data types that are not and do not contain pointers can
-      now be pickled.
+   This non-public class is the base class of all fundamental ctypes data
+   types. It is mentioned here because it contains the common attributes of the
+   fundamental ctypes data types.  ``_SimpleCData`` is a subclass of ``_CData``,
+   so it inherits their methods and attributes. ctypes data types that are not
+   and do not contain pointers can now be pickled.
 
 Instances have a single attribute:
 
index 868cbd8c55628fb49b2eb7a46bd51c82fc9ffa80..e4aac1a2ecda855fef3cc3cdbad9ceb498d6a0f3 100644 (file)
@@ -1498,8 +1498,6 @@ values.  If they're used anyway, ``0`` is substituted for them.
 which expands to the number of microseconds in the object, zero-padded on
 the left to six places.
 
-.. versionadded:: 2.6
-
 For a naive object, the ``%z`` and ``%Z`` format codes are replaced by empty
 strings.
 
index 33aa42c6d45063fd097c5ea887245a6ebaf8925e..6f4821b240122891ff8d0ceb5956db26df426b89 100644 (file)
@@ -340,9 +340,6 @@ Decimal objects
 
    Once constructed, :class:`Decimal` objects are immutable.
 
-   .. versionchanged:: 2.6
-      leading and trailing whitespace characters are permitted when
-      creating a Decimal instance from a string.
 
 Decimal floating point objects share many properties with the other built-in
 numeric types such as :class:`float` and :class:`int`.  All of the usual math
@@ -367,9 +364,6 @@ also have a number of specialized methods:
    Return a :term:`named tuple` representation of the number:
    ``DecimalTuple(sign, digits, exponent)``.
 
-   .. versionchanged:: 2.6
-      Use a named tuple.
-
 
 .. method:: Decimal.canonical()
 
index db4bd3a17332e1f502d022923cf7b65ef9a95361..585fa74bfd1a8fc72ba1f4f960878e966d42d019 100644 (file)
@@ -401,8 +401,7 @@ use :meth:`set_seq2` to set the commonly used sequence once and call
 
    If no blocks match, this returns ``(alo, blo, 0)``.
 
-   .. versionchanged:: 2.6
-      This method returns a :term:`named tuple` ``Match(a, b, size)``.
+   This method returns a :term:`named tuple` ``Match(a, b, size)``.
 
 
 .. method:: SequenceMatcher.get_matching_blocks()
index ce8b9f0fcf89e68affdf31d2014fa4a4c0400f18..ee035721c65331d574f0c2b494303dc256e6e1f9 100644 (file)
@@ -1441,9 +1441,6 @@ DocTestRunner objects
    The optional *verbose* argument controls how detailed the summary is.  If the
    verbosity is not specified, then the :class:`DocTestRunner`'s verbosity is used.
 
-   .. versionchanged:: 2.6
-      Use a named tuple.
-
 
 .. _doctest-outputchecker:
 
index e868e573a5cb10b0a0b5e5f37c04ab295eb12f99..299e154d8c7c81438be583be9aee05672bbec5da 100644 (file)
@@ -6,7 +6,6 @@
    :synopsis: Rational numbers.
 .. moduleauthor:: Jeffrey Yasskin <jyasskin at gmail.com>
 .. sectionauthor:: Jeffrey Yasskin <jyasskin at gmail.com>
-.. versionadded:: 2.6
 
 
 The :mod:`fractions` module defines an immutable, infinite-precision
index 8fa027c6b7ca3148905027588f856d6f77bab462..52ce6c6709e9c80104d3a8d624339fdc44421c86 100644 (file)
@@ -227,9 +227,6 @@ available.  They are listed here in alphabetical order.
    This function raises :exc:`SyntaxError` if the compiled source is invalid,
    and :exc:`TypeError` if the source contains null bytes.
 
-   .. versionadded:: 2.6
-      Support for compiling AST objects.
-
 
 .. function:: complex([real[, imag]])
 
index 5221c4e58ef3722fc7c79516b3c09eea00075775..7ac38ac5c908126bfed28df26327924d958ac0e9 100644 (file)
@@ -43,13 +43,13 @@ The following functions are provided:
    Pop and return the smallest item from the *heap*, maintaining the heap
    invariant.  If the heap is empty, :exc:`IndexError` is raised.
 
+
 .. function:: heappushpop(heap, item)
 
    Push *item* on the heap, then pop and return the smallest item from the
    *heap*.  The combined action runs more efficiently than :func:`heappush`
    followed by a separate call to :func:`heappop`.
 
-   .. versionadded:: 2.6
 
 .. function:: heapify(x)
 
index c9d4c60bd27abc00e272f66960e76f8bc2bde8a5..63cace61bd33dd5862a26fd4cee7016f2caa06d5 100644 (file)
@@ -91,8 +91,6 @@ loops that truncate the stream.
               for element in it:
                   yield element
 
-   .. versionadded:: 2.6
-
 
 .. function:: combinations(iterable, r)
 
@@ -137,7 +135,6 @@ loops that truncate the stream.
                 if sorted(indices) == list(indices):
                     yield tuple(pool[i] for i in indices)
 
-   .. versionadded:: 2.6
 
 .. function:: count([n])
 
@@ -363,7 +360,6 @@ loops that truncate the stream.
                 if len(set(indices)) == r:
                     yield tuple(pool[i] for i in indices)
 
-   .. versionadded:: 2.6
 
 .. function:: product(*iterables[, repeat])
 
@@ -425,10 +421,6 @@ loops that truncate the stream.
           for args in iterable:
               yield function(*args)
 
-   .. versionchanged:: 2.6
-      Previously, :func:`starmap` required the function arguments to be tuples.
-      Now, any iterable is allowed.
-
 
 .. function:: takewhile(predicate, iterable)
 
index ac462fe55ccbad585ec14c2b71f6faecd9a3445d..d109ea1ce9802bc1f23346f2d837c9c4e7099f28 100644 (file)
@@ -1240,10 +1240,6 @@ When this script is run, the output should look something like this::
    2008-01-18 14:49:54,033 d.e.f WARNING  IP: 192.168.0.1     User: sheila   A message at WARNING level with 2 parameters
    2008-01-18 14:49:54,033 d.e.f WARNING  IP: 127.0.0.1       User: jim      A message at WARNING level with 2 parameters
 
-.. versionadded:: 2.6
-
-The :class:`LoggerAdapter` class was not present in previous versions.
-
 
 .. _network-logging:
 
@@ -2143,8 +2139,6 @@ made, and any exception information to be logged.
 LoggerAdapter Objects
 ---------------------
 
-.. versionadded:: 2.6
-
 :class:`LoggerAdapter` instances are used to conveniently pass contextual
 information into logging calls. For a usage example , see the section on
 `adding contextual information to your logging output`__.
index e906af2e3b205a6080809fd8f4baae8a24b5f08d..d9593a8edfdc23983459acd23c10295b9ffe43d0 100644 (file)
@@ -102,7 +102,6 @@ Number-theoretic and representation functions:
    Return the :class:`Real` value *x* truncated to an :class:`Integral` (usually
    a long integer). Delegates to ``x.__trunc__()``.
 
-   .. versionadded:: 2.6
 
 Note that :func:`frexp` and :func:`modf` have a different call/return pattern
 than their C equivalents: they take a single argument and return a pair of
@@ -133,8 +132,6 @@ Power and logarithmic functions:
    Return the natural logarithm of *1+x* (base *e*). The
    result is calculated in a way which is accurate for *x* near zero.
 
-   .. versionadded:: 2.6
-
 
 .. function:: log10(x)
 
@@ -150,9 +147,6 @@ Power and logarithmic functions:
    ``x`` is negative, and ``y`` is not an integer then ``pow(x, y)``
    is undefined, and raises :exc:`ValueError`.
 
-   .. versionchanged:: 2.6
-      The outcome of ``1**nan`` and ``nan**0`` was undefined.
-
 
 .. function:: sqrt(x)
 
@@ -225,22 +219,16 @@ Hyperbolic functions:
 
    Return the inverse hyperbolic cosine of *x*.
 
-   .. versionadded:: 2.6
-
 
 .. function:: asinh(x)
 
    Return the inverse hyperbolic sine of *x*.
 
-   .. versionadded:: 2.6
-
 
 .. function:: atanh(x)
 
    Return the inverse hyperbolic tangent of *x*.
 
-   .. versionadded:: 2.6
-
 
 .. function:: cosh(x)
 
index 047c7ec6dc1b674143f8091a4dc97ef23f1d1b73..a0a767bc872b0ee29dded905281c7d5a998f6dfd 100644 (file)
@@ -457,7 +457,6 @@ expect a function argument.
       >>> itemgetter(slice(2,None))('ABCDEFG')
       'CDEFG'
 
-   .. versionadded:: 2.4
 
    Example of using :func:`itemgetter` to retrieve specific fields from a
    tuple record:
index 3dc06acd413ad030144fa90ed7f7d809f47b8789..c55d8bdee11411f6102ff818060aabc2d836b422 100644 (file)
@@ -39,4 +39,3 @@ probably won't find the :mod:`pickletools` module relevant.
    opcodes. The optimized pickle is shorter, takes less transmission time,
    requires less storage space, and unpickles more efficiently.
 
-   .. versionadded:: 2.6
index 508f8e8d2a9224bef1efb0f2bf581ee7dae84867..f449d7fefe23889b4bf96e84422b5c95f4a6c7ca 100644 (file)
@@ -7,10 +7,6 @@
 .. sectionauthor:: Georg Brandl <georg@python.org>
 .. (harvested from docstrings in the original file)
 
-.. versionchanged:: 2.6
-   This module was previously only available in the Mac-specific library, it is
-   now available for all platforms.
-
 .. index::
    pair: plist; file
    single: property list
index 3e2e8926f5d41b270086570c535b0d54be534e64..8c28879c938c2dbe7c9aefba04ff33e1186af552 100644 (file)
@@ -22,9 +22,6 @@ width constraint.
 
 Dictionaries are sorted by key before the display is computed.
 
-.. versionchanged:: 2.6
-   Added support for :class:`set` and :class:`frozenset`.
-
 The :mod:`pprint` module defines one class:
 
 .. First the implementation class:
index 77ed8cf4a0dfe347381e463e2a2fe811352070cc..08918624968dc8ec3d02b6e509dea9b8abede569 100644 (file)
@@ -45,10 +45,6 @@ When this module is run as a script, the :func:`main` is used to compile all the
 files named on the command line.  The exit status is nonzero if one of the files
 could not be compiled.
 
-.. versionchanged:: 2.6
-
-   Added the nonzero exit status.
-
 
 .. seealso::
 
index e19a4d5852f383a2e947286f2bab852ffa1ef43a..e819bd47aaecb45cd79a03058ddaefb3b0c1002b 100644 (file)
@@ -182,9 +182,6 @@ XMLParser Objects
    to this attribute.  
    When the size is changed, the buffer will be flushed.
 
-   .. versionchanged:: 2.6
-      The buffer size can now be changed.
-
 
 .. attribute:: xmlparser.buffer_text
 
index b5ba24d178167b0c4d4d866bc31a35d7af237951..7cb07c86db7d3bb7070a59103b5ff580d9728b65 100644 (file)
@@ -37,8 +37,6 @@ The :mod:`Queue` module defines the following classes and exceptions:
    block once this size has been reached, until queue items are consumed.  If
    *maxsize* is less than or equal to zero, the queue size is infinite.
 
-   .. versionadded:: 2.6
-
 
 .. class:: PriorityQueue(maxsize)
 
@@ -51,8 +49,6 @@ The :mod:`Queue` module defines the following classes and exceptions:
    one returned by ``sorted(list(entries))[0]``).  A typical pattern for entries
    is a tuple in the form: ``(priority_number, data)``.
 
-   .. versionadded:: 2.6
-
 
 .. exception:: Empty
 
index 86a9a9549a15286cc37b05f856fb8dfd197ec77e..afdff76c6b2fdfe8ce24d8a4e988390aab0dd1e8 100644 (file)
@@ -153,6 +153,7 @@ be found in any statistics text.
 
    Return a random floating point number *N* such that ``a <= N < b``.
 
+
 .. function:: triangular(low, high, mode)
 
    Return a random floating point number *N* such that ``low <= N < high`` and
@@ -160,8 +161,6 @@ be found in any statistics text.
    default to zero and one.  The *mode* argument defaults to the midpoint
    between the bounds, giving a symmetric distribution.
 
-   .. versionadded:: 2.6
-
 
 .. function:: betavariate(alpha, beta)
 
index 70e1d85e9d1e9732437604723f175d06c0da4f95..bb15c76992f90ae554fe78570b03ea4269a20cdb 100644 (file)
@@ -129,5 +129,3 @@ Scheduler Objects
    Read-only attribute returning a list of upcoming events in the order they
    will be run.  Each event is shown as a :term:`named tuple` with the
    following fields:  time, priority, action, argument.
-
-   .. versionadded:: 2.6
index 3fef9934d8b25981edc1a5a4465c5ad8f93d26d7..102d3eacf1a03d8e71d804ff3beacdb23d314fe3 100644 (file)
@@ -31,8 +31,6 @@ The module defines the following:
    section :ref:`epoll-objects` below for the methods supported by epolling
    objects.
 
-   .. versionadded:: 2.6
-
 
 .. function:: poll()
 
@@ -47,16 +45,12 @@ The module defines the following:
    (Only supported on BSD.)  Returns a kernel queue object object; see section
    :ref:`kqueue-objects` below for the methods supported by kqueue objects.
 
-   .. versionadded:: 2.6
-
 
 .. function:: kqueue(ident, filter=KQ_FILTER_READ, flags=KQ_ADD, fflags=0, data=0, udata=0)
 
    (Only supported on BSD.)  Returns a kernel event object object; see section
    :ref:`kevent-objects` below for the methods supported by kqueue objects.
 
-   .. versionadded:: 2.6
-
 
 .. function:: select(iwtd, owtd, ewtd[, timeout])
 
@@ -224,8 +218,6 @@ linearly scanned again. :cfunc:`select` is O(highest file descriptor), while
    that was never registered causes an :exc:`IOError` exception with errno
    :const:`ENOENT` to be raised.
 
-   .. versionadded:: 2.6
-
 
 .. method:: poll.unregister(fd)
 
index 2300fe973402e228a85b22282d5a057e239d6696..a3ab3877abd7c4d2bc8879bbf9bd1acaeee86088 100644 (file)
@@ -110,10 +110,6 @@ copying and removal. For operations on individual files, see also the
    information return by :func:`sys.exc_info`.  Exceptions raised by *onerror*
    will not be caught.
 
-   .. versionchanged:: 2.6
-      Explicitly check for *path* being a symbolic link and raise :exc:`OSError`
-      in that case.
-
 
 .. function:: move(src, dst)
 
index 7586035a92a1154512027fd7358924616498b0be..40015220398990b9ca55517bb2d2c066a27b1d41 100644 (file)
@@ -160,15 +160,11 @@ The :mod:`signal` module defines the following functions:
    Attempting to pass an invalid interval timer will cause a 
    :exc:`ItimerError`.
 
-   .. versionadded:: 2.6
-
 
 .. function:: getitimer(which)
 
    Returns current value of a given interval timer specified by *which*.
 
-   .. versionadded:: 2.6
-
 
 .. function:: set_wakeup_fd(fd)
 
@@ -195,8 +191,6 @@ The :mod:`signal` module defines the following functions:
    behaviour to interruptible by implicitly calling :cfunc:`siginterrupt` with a true *flag*
    value for the given signal.
 
-   .. versionadded:: 2.6
-
 
 .. function:: signal(signalnum, handler)
 
index 616be103a6964c263147f0e57996e13508e396c0..bf9b186180b57d651c1ed9d82e5ee4a0f53ab455 100644 (file)
@@ -350,8 +350,6 @@ A :class:`Connection` instance has the following attributes and methods:
 
 .. method:: Connection.set_progress_handler(handler, n)
 
-   .. versionadded:: 2.6
-
    This routine registers a callback. The callback is invoked for every *n*
    instructions of the SQLite virtual machine. This is useful if you want to
    get called from SQLite during long-running operations, for example to update
@@ -414,8 +412,6 @@ A :class:`Connection` instance has the following attributes and methods:
    the same capabilities as the :kbd:`.dump` command in the :program:`sqlite3`
    shell.
 
-   .. versionadded:: 2.6
-
    Example::
 
       # Convert file existing_db.db to SQL dump file dump.sql
@@ -764,8 +760,6 @@ case-insensitively by name:
 Using the connection as a context manager
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
-.. versionadded:: 2.6
-
 Connection objects can be used as context managers
 that automatically commit or rollback transactions.  In the event of an
 exception, the transaction is rolled back; otherwise, the transaction is
index 2344bcb2f914bd27066295b17dfcfcff06a403c3..25aa008715d452ce6d5ee53b14bb99ded49463b3 100644 (file)
@@ -212,8 +212,6 @@ Instances of the :class:`Popen` class have the following methods:
       On Windows only SIGTERM is supported so far. It's an alias for
       :meth:`terminate`.
 
-   .. versionadded:: 2.6
-
 
 .. method:: Popen.terminate()
 
@@ -221,16 +219,12 @@ Instances of the :class:`Popen` class have the following methods:
    child. On Windows the Win32 API function TerminateProcess is called
    to stop the child.
 
-   .. versionadded:: 2.6
-
 
 .. method:: Popen.kill()
 
    Kills the child. On Posix OSs the function sends SIGKILL to the child.
    On Windows :meth:`kill` is an alias for :meth:`terminate`.
 
-   .. versionadded:: 2.6
-
 
 The following attributes are also available:
 
index 085ba64c9748ab43bdbc36f96bb1ee01d7668514..9963dbdd94e777ea8d1c8fb87084fb7b398097d7 100644 (file)
@@ -66,8 +66,6 @@ always available.
 
    This function should be used for specialized purposes only.
 
-   .. versionadded:: 2.6
-
 
 .. function:: _clear_type_cache()
 
@@ -77,8 +75,6 @@ always available.
 
    This function should be used for internal and specialized purposes only.
 
-   .. versionadded:: 2.6
-
 
 .. function:: _current_frames()
 
@@ -245,8 +241,6 @@ always available.
    | :const:`unicode`             | -U                                       |
    +------------------------------+------------------------------------------+
 
-   .. versionadded:: 2.6
-
 
 .. data:: float_info
 
@@ -360,8 +354,6 @@ always available.
 
    Get the profiler function as set by :func:`setprofile`.
 
-   .. versionadded:: 2.6
-
 
 .. function:: gettrace()
 
@@ -378,8 +370,6 @@ always available.
       implementation platform, rather than part of the language definition,
       and thus may not be available in all Python implementations.
 
-   .. versionadded:: 2.6
-
 
 .. function:: getwindowsversion()
 
@@ -556,8 +546,6 @@ always available.
    environment variable, but you can set it yourself to control bytecode file
    generation.
 
-   .. versionadded:: 2.6
-
 
 .. function:: setcheckinterval(interval)
 
index b1c903864ad2ee9752fffff870a2d6f585da0f2d..9b7721476f770bb0f591aac52ef9b7ec0cfb0b2f 100644 (file)
@@ -182,8 +182,6 @@ ZipFile Objects
    filename or a :class:`ZipInfo` object.  *pwd* is the password used for
    encrypted files.
 
-   .. versionadded:: 2.6
-
 
 .. method:: ZipFile.extractall([path[, members[, pwd]]])
 
@@ -192,8 +190,6 @@ ZipFile Objects
    be a subset of the list returned by :meth:`namelist`.  *pwd* is the password
    used for encrypted files.
 
-   .. versionadded:: 2.6
-
 
 .. method:: ZipFile.printdir()