Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
a18cad54
Commit
a18cad54
authored
May 21, 2015
by
Yury Selivanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue 24180: Fixes by Berker Peksag.
parent
b5601586
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
23 deletions
+7
-23
Doc/c-api/typeobj.rst
Doc/c-api/typeobj.rst
+2
-3
Doc/glossary.rst
Doc/glossary.rst
+0
-12
Doc/library/exceptions.rst
Doc/library/exceptions.rst
+0
-1
Doc/library/inspect.rst
Doc/library/inspect.rst
+5
-7
No files found.
Doc/c-api/typeobj.rst
View file @
a18cad54
...
...
@@ -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
...
...
Doc/glossary.rst
View file @
a18cad54
...
...
@@ -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"
...
...
Doc/library/exceptions.rst
View file @
a18cad54
...
...
@@ -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
...
...
Doc/library/inspect.rst
View file @
a18cad54
...
...
@@ -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
p
ython generator
The function will return false for plain
P
ython 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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment