Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
f484456d
Commit
f484456d
authored
Jan 05, 2008
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove with_statement future imports from 2.6 docs.
parent
b2585166
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
6 deletions
+6
-6
Doc/library/contextlib.rst
Doc/library/contextlib.rst
+0
-2
Doc/library/decimal.rst
Doc/library/decimal.rst
+0
-1
Doc/library/math.rst
Doc/library/math.rst
+3
-0
Doc/library/numbers.rst
Doc/library/numbers.rst
+3
-1
Doc/library/thread.rst
Doc/library/thread.rst
+0
-1
Doc/library/threading.rst
Doc/library/threading.rst
+0
-1
No files found.
Doc/library/contextlib.rst
View file @
f484456d
...
...
@@ -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
...
...
Doc/library/decimal.rst
View file @
f484456d
...
...
@@ -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:
...
...
Doc/library/math.rst
View file @
f484456d
...
...
@@ -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)
...
...
Doc/library/numbers.rst
View file @
f484456d
: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
...
...
Doc/library/thread.rst
View file @
f484456d
...
...
@@ -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()
...
...
Doc/library/threading.rst
View file @
f484456d
...
...
@@ -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()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment