Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
cc1d0287
Kaydet (Commit)
cc1d0287
authored
Tem 01, 2015
tarafından
Yury Selivanov
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #24400: Mention that __instancecheck__ is used in abc.Awaitable and Coroutine
üst
f2701525
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
conf.py
Doc/conf.py
+1
-1
collections.abc.rst
Doc/library/collections.abc.rst
+12
-0
No files found.
Doc/conf.py
Dosyayı görüntüle @
cc1d0287
...
...
@@ -44,7 +44,7 @@ exclude_patterns = ['venv/*']
# -----------------------
# Use our custom theme.
html_theme
=
'
pydoctheme
'
html_theme
=
'
classic
'
html_theme_path
=
[
'tools'
]
html_theme_options
=
{
'collapsiblesidebar'
:
True
}
...
...
Doc/library/collections.abc.rst
Dosyayı görüntüle @
cc1d0287
...
...
@@ -161,6 +161,12 @@ ABC Inherits from Abstract Methods Mixin
:term:`Coroutine` objects and instances of the
:class:`~collections.abc.Coroutine` ABC are all instances of this ABC.
.. note::
In CPython, generator-based coroutines are *awaitables*, even though
they do not have an :meth:`__await__` method. This ABC
implements an :meth:`~class.__instancecheck__` method to make them
instances of itself.
.. versionadded:: 3.5
.. class:: Coroutine
...
...
@@ -172,6 +178,12 @@ ABC Inherits from Abstract Methods Mixin
:meth:`__await__`. All :class:`Coroutine` instances are also instances of
:class:`Awaitable`. See also the definition of :term:`coroutine`.
.. note::
In CPython, generator-based coroutines are *awaitables* and *coroutines*,
even though they do not have an :meth:`__await__` method. This ABC
implements an :meth:`~class.__instancecheck__` method to make them
instances of itself.
.. versionadded:: 3.5
.. class:: AsyncIterable
...
...
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