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
5dc2a37f
Kaydet (Commit)
5dc2a37f
authored
Agu 13, 2002
tarafından
Neal Norwitz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Allow more docstrings to be removed during compilation
üst
7f270ba8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
14 deletions
+18
-14
descrobject.c
Objects/descrobject.c
+11
-9
typeobject.c
Objects/typeobject.c
+7
-5
No files found.
Objects/descrobject.c
Dosyayı görüntüle @
5dc2a37f
...
@@ -668,23 +668,25 @@ proxy_copy(proxyobject *pp)
...
@@ -668,23 +668,25 @@ proxy_copy(proxyobject *pp)
static
PyMethodDef
proxy_methods
[]
=
{
static
PyMethodDef
proxy_methods
[]
=
{
{
"has_key"
,
(
PyCFunction
)
proxy_has_key
,
METH_O
,
{
"has_key"
,
(
PyCFunction
)
proxy_has_key
,
METH_O
,
"D.has_key(k) -> 1 if D has a key k, else 0"
},
PyDoc_STR
(
"D.has_key(k) -> 1 if D has a key k, else 0"
)
},
{
"get"
,
(
PyCFunction
)
proxy_get
,
METH_VARARGS
,
{
"get"
,
(
PyCFunction
)
proxy_get
,
METH_VARARGS
,
"D.get(k[,d]) -> D[k] if D.has_key(k), else d. d defaults to None."
},
PyDoc_STR
(
"D.get(k[,d]) -> D[k] if D.has_key(k), else d."
" d defaults to None."
)},
{
"keys"
,
(
PyCFunction
)
proxy_keys
,
METH_NOARGS
,
{
"keys"
,
(
PyCFunction
)
proxy_keys
,
METH_NOARGS
,
"D.keys() -> list of D's keys"
},
PyDoc_STR
(
"D.keys() -> list of D's keys"
)
},
{
"values"
,
(
PyCFunction
)
proxy_values
,
METH_NOARGS
,
{
"values"
,
(
PyCFunction
)
proxy_values
,
METH_NOARGS
,
"D.values() -> list of D's values"
},
PyDoc_STR
(
"D.values() -> list of D's values"
)
},
{
"items"
,
(
PyCFunction
)
proxy_items
,
METH_NOARGS
,
{
"items"
,
(
PyCFunction
)
proxy_items
,
METH_NOARGS
,
"D.items() -> list of D's (key, value) pairs, as 2-tuples"
},
PyDoc_STR
(
"D.items() -> list of D's (key, value) pairs, as 2-tuples"
)
},
{
"iterkeys"
,
(
PyCFunction
)
proxy_iterkeys
,
METH_NOARGS
,
{
"iterkeys"
,
(
PyCFunction
)
proxy_iterkeys
,
METH_NOARGS
,
"D.iterkeys() -> an iterator over the keys of D"
},
PyDoc_STR
(
"D.iterkeys() -> an iterator over the keys of D"
)
},
{
"itervalues"
,(
PyCFunction
)
proxy_itervalues
,
METH_NOARGS
,
{
"itervalues"
,(
PyCFunction
)
proxy_itervalues
,
METH_NOARGS
,
"D.itervalues() -> an iterator over the values of D"
},
PyDoc_STR
(
"D.itervalues() -> an iterator over the values of D"
)
},
{
"iteritems"
,
(
PyCFunction
)
proxy_iteritems
,
METH_NOARGS
,
{
"iteritems"
,
(
PyCFunction
)
proxy_iteritems
,
METH_NOARGS
,
"D.iteritems() -> an iterator over the (key, value) items of D"
},
PyDoc_STR
(
"D.iteritems() ->"
" an iterator over the (key, value) items of D"
)},
{
"copy"
,
(
PyCFunction
)
proxy_copy
,
METH_NOARGS
,
{
"copy"
,
(
PyCFunction
)
proxy_copy
,
METH_NOARGS
,
"D.copy() -> a shallow copy of D"
},
PyDoc_STR
(
"D.copy() -> a shallow copy of D"
)
},
{
0
}
{
0
}
};
};
...
...
Objects/typeobject.c
Dosyayı görüntüle @
5dc2a37f
...
@@ -1577,9 +1577,9 @@ type_subclasses(PyTypeObject *type, PyObject *args_ignored)
...
@@ -1577,9 +1577,9 @@ type_subclasses(PyTypeObject *type, PyObject *args_ignored)
static
PyMethodDef
type_methods
[]
=
{
static
PyMethodDef
type_methods
[]
=
{
{
"mro"
,
(
PyCFunction
)
mro_external
,
METH_NOARGS
,
{
"mro"
,
(
PyCFunction
)
mro_external
,
METH_NOARGS
,
"mro() -> list
\n
return a type's method resolution order"
},
PyDoc_STR
(
"mro() -> list
\n
return a type's method resolution order"
)
},
{
"__subclasses__"
,
(
PyCFunction
)
type_subclasses
,
METH_NOARGS
,
{
"__subclasses__"
,
(
PyCFunction
)
type_subclasses
,
METH_NOARGS
,
"__subclasses__() -> list of immediate subclasses"
},
PyDoc_STR
(
"__subclasses__() -> list of immediate subclasses"
)
},
{
0
}
{
0
}
};
};
...
@@ -1903,7 +1903,8 @@ object_reduce(PyObject *self, PyObject *args)
...
@@ -1903,7 +1903,8 @@ object_reduce(PyObject *self, PyObject *args)
}
}
static
PyMethodDef
object_methods
[]
=
{
static
PyMethodDef
object_methods
[]
=
{
{
"__reduce__"
,
object_reduce
,
METH_NOARGS
,
"helper for pickle"
},
{
"__reduce__"
,
object_reduce
,
METH_NOARGS
,
PyDoc_STR
(
"helper for pickle"
)},
{
0
}
{
0
}
};
};
...
@@ -1929,7 +1930,7 @@ PyTypeObject PyBaseObject_Type = {
...
@@ -1929,7 +1930,7 @@ PyTypeObject PyBaseObject_Type = {
PyObject_GenericSetAttr
,
/* tp_setattro */
PyObject_GenericSetAttr
,
/* tp_setattro */
0
,
/* tp_as_buffer */
0
,
/* tp_as_buffer */
Py_TPFLAGS_DEFAULT
|
Py_TPFLAGS_BASETYPE
,
/* tp_flags */
Py_TPFLAGS_DEFAULT
|
Py_TPFLAGS_BASETYPE
,
/* tp_flags */
"The most base type"
,
/* tp_doc */
PyDoc_STR
(
"The most base type"
),
/* tp_doc */
0
,
/* tp_traverse */
0
,
/* tp_traverse */
0
,
/* tp_clear */
0
,
/* tp_clear */
0
,
/* tp_richcompare */
0
,
/* tp_richcompare */
...
@@ -2976,7 +2977,8 @@ tp_new_wrapper(PyObject *self, PyObject *args, PyObject *kwds)
...
@@ -2976,7 +2977,8 @@ tp_new_wrapper(PyObject *self, PyObject *args, PyObject *kwds)
static
struct
PyMethodDef
tp_new_methoddef
[]
=
{
static
struct
PyMethodDef
tp_new_methoddef
[]
=
{
{
"__new__"
,
(
PyCFunction
)
tp_new_wrapper
,
METH_KEYWORDS
,
{
"__new__"
,
(
PyCFunction
)
tp_new_wrapper
,
METH_KEYWORDS
,
"T.__new__(S, ...) -> a new object with type S, a subtype of T"
},
PyDoc_STR
(
"T.__new__(S, ...) -> "
"a new object with type S, a subtype of T"
)},
{
0
}
{
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