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
39cadc3f
Kaydet (Commit)
39cadc3f
authored
Eki 15, 2010
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#4968: updates to inspect.is* function docs.
üst
d0b0e1d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
inspect.rst
Doc/library/inspect.rst
+10
-7
No files found.
Doc/library/inspect.rst
Dosyayı görüntüle @
39cadc3f
...
@@ -204,18 +204,19 @@ attributes:
...
@@ -204,18 +204,19 @@ attributes:
.. function:: isclass(object)
.. function:: isclass(object)
Return true if the object is a class.
Return true if the object is a class, whether built-in or created in Python
code.
.. function:: ismethod(object)
.. function:: ismethod(object)
Return true if the object is a
method
.
Return true if the object is a
bound method written in Python
.
.. function:: isfunction(object)
.. function:: isfunction(object)
Return true if the object is a Python function
or unnamed (:term:`lambda`)
Return true if the object is a Python function
, which includes functions
funct
ion.
created by a :term:`lambda` express
ion.
.. function:: isgeneratorfunction(object)
.. function:: isgeneratorfunction(object)
...
@@ -245,13 +246,14 @@ attributes:
...
@@ -245,13 +246,14 @@ attributes:
.. function:: isbuiltin(object)
.. function:: isbuiltin(object)
Return true if the object is a built-in function.
Return true if the object is a built-in function
or a bound built-in method
.
.. function:: isroutine(object)
.. function:: isroutine(object)
Return true if the object is a user-defined or built-in function or method.
Return true if the object is a user-defined or built-in function or method.
.. function:: isabstract(object)
.. function:: isabstract(object)
Return true if the object is an abstract base class.
Return true if the object is an abstract base class.
...
@@ -259,8 +261,9 @@ attributes:
...
@@ -259,8 +261,9 @@ attributes:
.. function:: ismethoddescriptor(object)
.. function:: ismethoddescriptor(object)
Return true if the object is a method descriptor, but not if :func:`ismethod`
Return true if the object is a method descriptor, but not if
or :func:`isclass` or :func:`isfunction` are true.
:func:`ismethod`, :func:`isclass`, :func:`isfunction` or :func:`isbuiltin`
are true.
This, for example, is true of ``int.__add__``. An object passing this test
This, for example, is true of ``int.__add__``. An object passing this test
has a :attr:`__get__` attribute but not a :attr:`__set__` attribute, but
has a :attr:`__get__` attribute but not a :attr:`__set__` attribute, but
...
...
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