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
ff542236
Kaydet (Commit)
ff542236
authored
May 21, 2015
tarafından
Yury Selivanov
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue 24017: Use abc.Coroutine in inspect.iscoroutine() function
üst
f3e40fac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
inspect.py
Lib/inspect.py
+1
-2
No files found.
Lib/inspect.py
Dosyayı görüntüle @
ff542236
...
@@ -212,8 +212,7 @@ def isgenerator(object):
...
@@ -212,8 +212,7 @@ def isgenerator(object):
def
iscoroutine
(
object
):
def
iscoroutine
(
object
):
"""Return true if the object is a coroutine."""
"""Return true if the object is a coroutine."""
return
(
isinstance
(
object
,
types
.
GeneratorType
)
and
return
isinstance
(
object
,
collections
.
abc
.
Coroutine
)
object
.
gi_code
.
co_flags
&
(
CO_COROUTINE
|
CO_ITERABLE_COROUTINE
))
def
istraceback
(
object
):
def
istraceback
(
object
):
"""Return true if the object is a traceback.
"""Return true if the object is a traceback.
...
...
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