summaryrefslogtreecommitdiffstats
path: root/Doc/reference/expressions.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-09-01 12:38:06 (GMT)
committerGeorg Brandl <georg@python.org>2007-09-01 12:38:06 (GMT)
commit1617457cff847fed9fadb01f1acf6ba8bb621726 (patch)
tree1df36cebecfb525bda343ff2483ef8dc6cc873f1 /Doc/reference/expressions.rst
parent321976b6e74db8f649e47f2b791c4bcc2a71d127 (diff)
downloadcpython-1617457cff847fed9fadb01f1acf6ba8bb621726.zip
cpython-1617457cff847fed9fadb01f1acf6ba8bb621726.tar.gz
cpython-1617457cff847fed9fadb01f1acf6ba8bb621726.tar.bz2
Remove versionadded/versionchanged in the reference.
Diffstat (limited to 'Doc/reference/expressions.rst')
-rw-r--r--Doc/reference/expressions.rst7
1 files changed, 0 insertions, 7 deletions
diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst
index f45b311..b1b80ca 100644
--- a/Doc/reference/expressions.rst
+++ b/Doc/reference/expressions.rst
@@ -294,8 +294,6 @@ Yield expressions
yield_atom: "(" `yield_expression` ")"
yield_expression: "yield" [`expression_list`]
-.. versionadded:: 2.5
-
The :keyword:`yield` expression is only used when defining a generator function,
and can only be used in the body of a function definition. Using a
:keyword:`yield` expression in a function definition is sufficient to cause that
@@ -1024,9 +1022,6 @@ substring of *y*. An equivalent test is ``y.find(x) != -1``. Empty strings are
always considered to be a substring of any other string, so ``"" in "abc"`` will
return ``True``.
-.. versionchanged:: 2.3
- Previously, *x* was required to be a string of length ``1``.
-
For user-defined classes which define the :meth:`__contains__` method, ``x in
y`` is true if and only if ``y.__contains__(x)`` is true.
@@ -1089,8 +1084,6 @@ The expression ``x if C else y`` first evaluates *C* (*not* *x*); if *C* is
true, *x* is evaluated and its value is returned; otherwise, *y* is evaluated
and its value is returned.
-.. versionadded:: 2.5
-
.. index:: operator: and
The expression ``x and y`` first evaluates *x*; if *x* is false, its value is