]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove with_statement future imports from 2.6 docs.
authorGeorg Brandl <georg@python.org>
Sat, 5 Jan 2008 19:28:16 +0000 (19:28 +0000)
committerGeorg Brandl <georg@python.org>
Sat, 5 Jan 2008 19:28:16 +0000 (19:28 +0000)
Doc/library/contextlib.rst
Doc/library/decimal.rst
Doc/library/math.rst
Doc/library/numbers.rst
Doc/library/thread.rst
Doc/library/threading.rst

index 11af4321304b569118bf1330eaa2fcc37c763f85..8c10c95494b7632e90237b262b1d11ce28b76723 100644 (file)
@@ -23,7 +23,6 @@ Functions provided:
 
    A simple example (this is not recommended as a real way of generating HTML!)::
 
-      from __future__ import with_statement
       from contextlib import contextmanager
 
       @contextmanager
@@ -100,7 +99,6 @@ Functions provided:
 
    And lets you write code like this::
 
-      from __future__ import with_statement
       from contextlib import closing
       import urllib
 
index 6383673e705a26a3229d8353b24b6c39b71ede91..d8942f823e30e75ec847e0c1f31d0f8a025f19f8 100644 (file)
@@ -840,7 +840,6 @@ the :func:`localcontext` function to temporarily change the active context.
    For example, the following code sets the current decimal precision to 42 places,
    performs a calculation, and then automatically restores the previous context::
 
-      from __future__ import with_statement
       from decimal import localcontext
 
       with localcontext() as ctx:
index 6c781041a18ca6d604d256bd2eefeb96be0d93da..b111dd1db954bea1f9bd818ef9504135809bfb68 100644 (file)
@@ -48,6 +48,9 @@ Number-theoretic and representation functions:
    Return the floor of *x* as a float, the largest integer value less than or equal
    to *x*.
 
+   .. versionchanged:: 2.6
+      Added :meth:`__floor__` delegation.
+
 
 .. function:: fmod(x, y)
 
index d0f9c3b83db73df8744a3934edd7a9fa40142852..505a8af2dc92d94c9389774c8c267aceb8f22fa1 100644 (file)
@@ -1,10 +1,12 @@
-
 :mod:`numbers` --- Numeric abstract base classes
 ================================================
 
 .. module:: numbers
    :synopsis: Numeric abstract base classes (Complex, Real, Integral, etc.).
 
+.. versionadded:: 2.6
+
+
 The :mod:`numbers` module (:pep:`3141`) defines a hierarchy of numeric abstract
 base classes which progressively define more operations. These concepts also
 provide a way to distinguish exact from inexact types. None of the types defined
index afe8cbeffbc1044052498412d790154220f203eb..b0e55ea27577c53e838678a644b930f2c8ec44f9 100644 (file)
@@ -135,7 +135,6 @@ Lock objects have the following methods:
 In addition to these methods, lock objects can also be used via the
 :keyword:`with` statement, e.g.::
 
-   from __future__ import with_statement
    import thread
 
    a_lock = thread.allocate_lock()
index 650a11361dd6cf68e6dbcac690d7def1b8e0b05c..d5bd5d1a92c2446443e8341d06f2b1bc4c56e773 100644 (file)
@@ -723,7 +723,6 @@ Currently, :class:`Lock`, :class:`RLock`, :class:`Condition`,
 :class:`Semaphore`, and :class:`BoundedSemaphore` objects may be used as
 :keyword:`with` statement context managers.  For example::
 
-   from __future__ import with_statement
    import threading
 
    some_rlock = threading.RLock()