]> granicus.if.org Git - python/commitdiff
Issue 24180: Fixes by Berker Peksag.
authorYury Selivanov <yselivanov@sprymix.com>
Thu, 21 May 2015 21:02:31 +0000 (17:02 -0400)
committerYury Selivanov <yselivanov@sprymix.com>
Thu, 21 May 2015 21:02:31 +0000 (17:02 -0400)
Doc/c-api/typeobj.rst
Doc/glossary.rst
Doc/library/exceptions.rst
Doc/library/inspect.rst

index ee33a67f7d20b7474745bbbd9bb638c0e262c160..6213d127c45b35bafd11d864925bed47d930d7d6 100644 (file)
@@ -227,9 +227,7 @@ type objects) *must* have the :attr:`ob_size` field.
    protocols at the C-level.  See :ref:`async-structs` for details.
 
    .. versionadded:: 3.5
-
-   .. note::
-      Formerly known as tp_compare and tp_reserved.
+      Formerly known as ``tp_compare`` and ``tp_reserved``.
 
 
 .. c:member:: reprfunc PyTypeObject.tp_repr
@@ -1349,6 +1347,7 @@ Async Object Structures
 
 .. sectionauthor:: Yury Selivanov <yselivanov@sprymix.com>
 
+.. versionadded:: 3.5
 
 .. c:type:: PyAsyncMethods
 
index 6158a574efc7d49708c64c6466cadb0233ff71c6..3b7975b595eb86c1a39b635af6759c0845eff314 100644 (file)
@@ -74,16 +74,12 @@ Glossary
       :keyword:`async with` statement by defining :meth:`__aenter__` and
       :meth:`__aexit__` methods.  Introduced by :pep:`492`.
 
-      .. versionadded:: 3.5
-
    asynchronous iterable
       An object, that can be used in an :keyword:`async for` statement.
       Must return an :term:`awaitable` from its :meth:`__aiter__` method,
       which should in turn be resolved in an :term:`asynchronous iterator`
       object.  Introduced by :pep:`492`.
 
-      .. versionadded:: 3.5
-
    asynchronous iterator
       An object that implements :meth:`__aiter__` and :meth:`__anext__`
       methods, that must return :term:`awaitable` objects.
@@ -91,8 +87,6 @@ Glossary
       iterator's :meth:`__anext__` method until it raises
       :exc:`StopAsyncIteration` exception.  Introduced by :pep:`492`.
 
-      .. versionadded:: 3.5
-
    attribute
       A value associated with an object which is referenced by name using
       dotted expressions.  For example, if an object *o* has an attribute
@@ -103,8 +97,6 @@ Glossary
       a :term:`coroutine` or an object with an :meth:`__await__` method.
       See also :pep:`492`.
 
-      .. versionadded:: 3.5
-
    BDFL
       Benevolent Dictator For Life, a.k.a. `Guido van Rossum
       <https://www.python.org/~guido/>`_, Python's creator.
@@ -183,8 +175,6 @@ Glossary
       :keyword:`async for`, and :keyword:`async with` keywords.  Introduced
       by :pep:`492`.
 
-      .. versionadded:: 3.5
-
    coroutine
       Coroutines is a more generalized form of subroutines. Subroutines are
       entered at one point and exited at another point.  Coroutines, can be
@@ -192,8 +182,6 @@ Glossary
       :keyword:`await` expressions, and :keyword:`async for` and
       :keyword:`async with` statements. See also :pep:`492`.
 
-      .. versionadded:: 3.5
-
    CPython
       The canonical implementation of the Python programming language, as
       distributed on `python.org <https://www.python.org>`_.  The term "CPython"
index 61620681d6ea57465751a9254fb730ce8e9f722b..2209f167ea374113a57b0054294202c735be5941 100644 (file)
@@ -328,7 +328,6 @@ The following exceptions are the exceptions that are usually raised.
    :term:`asynchronous iterator` object to stop the iteration.
 
    .. versionadded:: 3.5
-      See also :pep:`492`.
 
 .. exception:: SyntaxError
 
index b3b4dd825532ca4c567703479135795707615265..831882550a7b9b335e1e56dd2b05698f8c21dc20 100644 (file)
@@ -268,23 +268,21 @@ attributes:
 
 .. function:: iscoroutinefunction(object)
 
-   Return true if the object is a coroutine function.
+   Return true if the object is a :term:`coroutine function`.
 
    Coroutine functions are defined with an ``async def`` syntax,
    or are generators decorated with :func:`types.coroutine`
    or :func:`asyncio.coroutine`.
 
-   The function will return false for plain python generator
+   The function will return false for plain Python generator
    functions.
 
-   See also :pep:`492`.
-
    .. versionadded:: 3.5
 
 
 .. function:: iscoroutine(object)
 
-   Return true if the object is a coroutine.
+   Return true if the object is a :term:`coroutine`.
 
    Coroutines are results of calls of coroutine functions or
    generator functions decorated with :func:`types.coroutine`
@@ -292,7 +290,7 @@ attributes:
 
    The function will return false for plain python generators.
 
-   See also :class:`collections.abc.Coroutine` and :pep:`492`.
+   See also :class:`collections.abc.Coroutine`.
 
    .. versionadded:: 3.5
 
@@ -302,7 +300,7 @@ attributes:
    Return true if the object can be used in :keyword:`await`
    expression.
 
-   See also :class:`collections.abc.Awaitable` and :pep:`492`.
+   See also :class:`collections.abc.Awaitable`.
 
    .. versionadded:: 3.5