summaryrefslogtreecommitdiffstats
path: root/Doc/library/functions.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-10-22 11:48:10 (GMT)
committerGeorg Brandl <georg@python.org>2009-10-22 11:48:10 (GMT)
commit6c14e587f59e72d69b99fdf766bbbcbf4af920fa (patch)
tree6cec7b8014032f1d8ae9a5574c9bfd2c14320b4a /Doc/library/functions.rst
parent3954d21cc5bdef2bed90c875fc80a620b28271d5 (diff)
downloadcpython-6c14e587f59e72d69b99fdf766bbbcbf4af920fa.zip
cpython-6c14e587f59e72d69b99fdf766bbbcbf4af920fa.tar.gz
cpython-6c14e587f59e72d69b99fdf766bbbcbf4af920fa.tar.bz2
Use "impl-detail" directive where applicable.
Diffstat (limited to 'Doc/library/functions.rst')
-rw-r--r--Doc/library/functions.rst21
1 files changed, 12 insertions, 9 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index cfb4154..ff7c4b6 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -523,8 +523,10 @@ available. They are listed here in alphabetical order.
Return the "identity" of an object. This is an integer (or long integer) which
is guaranteed to be unique and constant for this object during its lifetime.
- Two objects with non-overlapping lifetimes may have the same :func:`id` value.
- (Implementation note: this is the address of the object.)
+ Two objects with non-overlapping lifetimes may have the same :func:`id`
+ value.
+
+ .. impl-detail:: This is the address of the object.
.. function:: input([prompt])
@@ -1384,14 +1386,15 @@ available. They are listed here in alphabetical order.
elements are never used (such as when the loop is usually terminated with
:keyword:`break`).
- .. note::
+ .. impl-detail::
- :func:`xrange` is intended to be simple and fast. Implementations may impose
- restrictions to achieve this. The C implementation of Python restricts all
- arguments to native C longs ("short" Python integers), and also requires that
- the number of elements fit in a native C long. If a larger range is needed,
- an alternate version can be crafted using the :mod:`itertools` module:
- ``islice(count(start, step), (stop-start+step-1)//step)``.
+ :func:`xrange` is intended to be simple and fast. Implementations may
+ impose restrictions to achieve this. The C implementation of Python
+ restricts all arguments to native C longs ("short" Python integers), and
+ also requires that the number of elements fit in a native C long. If a
+ larger range is needed, an alternate version can be crafted using the
+ :mod:`itertools` module: ``islice(count(start, step),
+ (stop-start+step-1)//step)``.
.. function:: zip([iterable, ...])