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
c7284122
Kaydet (Commit)
c7284122
authored
May 24, 2011
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
indicate return value on __dir__ methods
üst
1fdcf0e4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
moduleobject.c
Objects/moduleobject.c
+1
-1
typeobject.c
Objects/typeobject.c
+2
-2
No files found.
Objects/moduleobject.c
Dosyayı görüntüle @
c7284122
...
...
@@ -437,7 +437,7 @@ module_dir(PyObject *self, PyObject *args)
static
PyMethodDef
module_methods
[]
=
{
{
"__dir__"
,
module_dir
,
METH_NOARGS
,
PyDoc_STR
(
"__dir__() -> specialized dir() implementation"
)},
PyDoc_STR
(
"__dir__() ->
list
\n
specialized dir() implementation"
)},
{
0
}
};
...
...
Objects/typeobject.c
Dosyayı görüntüle @
c7284122
...
...
@@ -2662,7 +2662,7 @@ static PyMethodDef type_methods[] = {
{
"__subclasscheck__"
,
type___subclasscheck__
,
METH_O
,
PyDoc_STR
(
"__subclasscheck__() -> bool
\n
check if a class is a subclass"
)},
{
"__dir__"
,
type_dir
,
METH_NOARGS
,
PyDoc_STR
(
"__dir__() -> specialized __dir__ implementation for types"
)},
PyDoc_STR
(
"__dir__() ->
list
\n
specialized __dir__ implementation for types"
)},
{
0
}
};
...
...
@@ -3575,7 +3575,7 @@ static PyMethodDef object_methods[] = {
{
"__sizeof__"
,
object_sizeof
,
METH_NOARGS
,
PyDoc_STR
(
"__sizeof__() -> int
\n
size of object in memory, in bytes"
)},
{
"__dir__"
,
object_dir
,
METH_NOARGS
,
PyDoc_STR
(
"__dir__() -> default dir() implementation"
)},
PyDoc_STR
(
"__dir__() ->
list
\n
default dir() implementation"
)},
{
0
}
};
...
...
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