diff options
author | Georg Brandl <georg@python.org> | 2007-09-01 13:51:09 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-09-01 13:51:09 (GMT) |
commit | 55ac8f0f26efdbbcb5cc197f9369d23d50bee908 (patch) | |
tree | a0d5b7128c055d8c767652dc3948c3404be06396 /Doc/library/operator.rst | |
parent | 1617457cff847fed9fadb01f1acf6ba8bb621726 (diff) | |
download | cpython-55ac8f0f26efdbbcb5cc197f9369d23d50bee908.zip cpython-55ac8f0f26efdbbcb5cc197f9369d23d50bee908.tar.gz cpython-55ac8f0f26efdbbcb5cc197f9369d23d50bee908.tar.bz2 |
Get rid of the remaining versionadded/versionchanged directives.
Diffstat (limited to 'Doc/library/operator.rst')
-rw-r--r-- | Doc/library/operator.rst | 59 |
1 files changed, 1 insertions, 58 deletions
diff --git a/Doc/library/operator.rst b/Doc/library/operator.rst index 4e85569..f396978 100644 --- a/Doc/library/operator.rst +++ b/Doc/library/operator.rst @@ -42,7 +42,6 @@ the rich comparison operators they support: return any value, which may or may not be interpretable as a Boolean value. See :ref:`comparisons` for more information about rich comparisons. - .. versionadded:: 2.2 The logical operations are also generally applicable to all objects, and support truth tests, identity tests, and boolean operations: @@ -67,14 +66,11 @@ truth tests, identity tests, and boolean operations: Return ``a is b``. Tests object identity. - .. versionadded:: 2.3 - .. function:: is_not(a, b) Return ``a is not b``. Tests object identity. - .. versionadded:: 2.3 The mathematical and bitwise operations are the most numerous: @@ -109,8 +105,6 @@ The mathematical and bitwise operations are the most numerous: Return ``a // b``. - .. versionadded:: 2.2 - .. function:: inv(o) invert(o) @@ -119,9 +113,6 @@ The mathematical and bitwise operations are the most numerous: Return the bitwise inverse of the number *o*. This is equivalent to ``~o``. - .. versionadded:: 2.0 - The names :func:`invert` and :func:`__invert__`. - .. function:: lshift(a, b) __lshift__(a, b) @@ -164,8 +155,6 @@ The mathematical and bitwise operations are the most numerous: Return ``a ** b``, for *a* and *b* numbers. - .. versionadded:: 2.3 - .. function:: rshift(a, b) __rshift__(a, b) @@ -185,8 +174,6 @@ The mathematical and bitwise operations are the most numerous: Return ``a / b`` when ``__future__.division`` is in effect. This is also known as "true" division. - .. versionadded:: 2.2 - .. function:: xor(a, b) __xor__(a, b) @@ -199,8 +186,6 @@ The mathematical and bitwise operations are the most numerous: Return *a* converted to an integer. Equivalent to ``a.__index__()``. - .. versionadded:: 2.5 - Operations which work with sequences include: @@ -215,9 +200,6 @@ Operations which work with sequences include: Return the outcome of the test ``b in a``. Note the reversed operands. - .. versionadded:: 2.0 - The name :func:`__contains__`. - .. function:: countOf(a, b) @@ -290,24 +272,18 @@ to the compound statement ``z = x; z += y``. ``a = iadd(a, b)`` is equivalent to ``a += b``. - .. versionadded:: 2.5 - .. function:: iand(a, b) __iand__(a, b) ``a = iand(a, b)`` is equivalent to ``a &= b``. - .. versionadded:: 2.5 - .. function:: iconcat(a, b) __iconcat__(a, b) ``a = iconcat(a, b)`` is equivalent to ``a += b`` for *a* and *b* sequences. - .. versionadded:: 2.5 - .. function:: idiv(a, b) __idiv__(a, b) @@ -315,23 +291,17 @@ to the compound statement ``z = x; z += y``. ``a = idiv(a, b)`` is equivalent to ``a /= b`` when ``__future__.division`` is not in effect. - .. versionadded:: 2.5 - .. function:: ifloordiv(a, b) __ifloordiv__(a, b) ``a = ifloordiv(a, b)`` is equivalent to ``a //= b``. - .. versionadded:: 2.5 - .. function:: ilshift(a, b) __ilshift__(a, b) - ``a = ilshift(a, b)`` is equivalent to ``a <``\ ``<= b``. - - .. versionadded:: 2.5 + ``a = ilshift(a, b)`` is equivalent to ``a <<= b``. .. function:: imod(a, b) @@ -339,32 +309,24 @@ to the compound statement ``z = x; z += y``. ``a = imod(a, b)`` is equivalent to ``a %= b``. - .. versionadded:: 2.5 - .. function:: imul(a, b) __imul__(a, b) ``a = imul(a, b)`` is equivalent to ``a *= b``. - .. versionadded:: 2.5 - .. function:: ior(a, b) __ior__(a, b) ``a = ior(a, b)`` is equivalent to ``a |= b``. - .. versionadded:: 2.5 - .. function:: ipow(a, b) __ipow__(a, b) ``a = ipow(a, b)`` is equivalent to ``a **= b``. - .. versionadded:: 2.5 - .. function:: irepeat(a, b) __irepeat__(a, b) @@ -372,24 +334,18 @@ to the compound statement ``z = x; z += y``. ``a = irepeat(a, b)`` is equivalent to ``a *= b`` where *a* is a sequence and *b* is an integer. - .. versionadded:: 2.5 - .. function:: irshift(a, b) __irshift__(a, b) ``a = irshift(a, b)`` is equivalent to ``a >>= b``. - .. versionadded:: 2.5 - .. function:: isub(a, b) __isub__(a, b) ``a = isub(a, b)`` is equivalent to ``a -= b``. - .. versionadded:: 2.5 - .. function:: itruediv(a, b) __itruediv__(a, b) @@ -397,16 +353,12 @@ to the compound statement ``z = x; z += y``. ``a = itruediv(a, b)`` is equivalent to ``a /= b`` when ``__future__.division`` is in effect. - .. versionadded:: 2.5 - .. function:: ixor(a, b) __ixor__(a, b) ``a = ixor(a, b)`` is equivalent to ``a ^= b``. - .. versionadded:: 2.5 - The :mod:`operator` module also defines a few predicates to test the type of objects. @@ -497,11 +449,6 @@ expect a function argument. ``f=attrgetter('name', 'date')``, the call ``f(b)`` returns ``(b.name, b.date)``. - .. versionadded:: 2.4 - - .. versionchanged:: 2.5 - Added support for multiple attributes. - .. function:: itemgetter(item[, args...]) @@ -510,10 +457,6 @@ expect a function argument. call ``f(b)`` returns ``b[2]``. After, ``f=itemgetter(2,5,3)``, the call ``f(b)`` returns ``(b[2], b[5], b[3])``. - .. versionadded:: 2.4 - - .. versionchanged:: 2.5 - Added support for multiple item extraction. Examples:: |