mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Remove versionadded/versionchanged in the reference.
This commit is contained in:
parent
321976b6e7
commit
1617457cff
3 changed files with 5 additions and 57 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue