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
7855aba6
Kaydet (Commit)
7855aba6
authored
Şub 18, 2001
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Move docstrings out of function table to constants defined near the
function implementations.
üst
4e30378e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
11 deletions
+23
-11
_weakref.c
Modules/_weakref.c
+23
-11
No files found.
Modules/_weakref.c
Dosyayı görüntüle @
7855aba6
...
...
@@ -461,6 +461,10 @@ getweakrefcount(PyWeakReference *head)
}
static
char
weakref_getweakrefcount__doc__
[]
=
"getweakrefcount(object) -- return the number of weak references
\n
"
"to 'object'."
;
static
PyObject
*
weakref_getweakrefcount
(
PyObject
*
self
,
PyObject
*
args
)
{
...
...
@@ -480,6 +484,10 @@ weakref_getweakrefcount(PyObject *self, PyObject *args)
}
static
char
weakref_getweakrefs__doc__
[]
=
"getweakrefs(object) -- return a list of all weak reference objects
\n
"
"that point to 'object'."
;
static
PyObject
*
weakref_getweakrefs
(
PyObject
*
self
,
PyObject
*
args
)
{
...
...
@@ -561,6 +569,11 @@ insert_head(PyWeakReference *newref, PyWeakReference **list)
}
static
char
weakref_ref__doc__
[]
=
"new(object[, callback]) -- create a weak reference to 'object';
\n
"
"when 'object' is finalized, 'callback' will be called and passed
\n
"
"a reference to 'object'."
;
static
PyObject
*
weakref_ref
(
PyObject
*
self
,
PyObject
*
args
)
{
...
...
@@ -610,6 +623,11 @@ weakref_ref(PyObject *self, PyObject *args)
}
static
char
weakref_proxy__doc__
[]
=
"proxy(object[, callback]) -- create a proxy object that weakly
\n
"
"references 'object'. 'callback', if given, is called with a
\n
"
"reference to the proxy when it is about to be finalized."
;
static
PyObject
*
weakref_proxy
(
PyObject
*
self
,
PyObject
*
args
)
{
...
...
@@ -711,19 +729,13 @@ cleanup_helper(PyObject *object)
static
PyMethodDef
weakref_functions
[]
=
{
{
"getweakrefcount"
,
weakref_getweakrefcount
,
METH_VARARGS
,
"getweakrefcount(object) -- return the number of weak references
\n
"
"to 'object'."
},
weakref_getweakrefcount__doc__
},
{
"getweakrefs"
,
weakref_getweakrefs
,
METH_VARARGS
,
"getweakrefs(object) -- return a list of all weak reference objects
\n
"
"that point to 'object'."
},
{
"proxy"
,
weakref_proxy
,
METH_VARARGS
,
"proxy(object[, callback]) -- create a proxy object that weakly
\n
"
"references 'object'. 'callback', if given, is called with a
\n
"
"reference to 'object' when it is about to be finalized."
},
weakref_getweakrefs__doc__
},
{
"proxy"
,
weakref_proxy
,
METH_VARARGS
,
weakref_proxy__doc__
},
{
"ref"
,
weakref_ref
,
METH_VARARGS
,
"new(object[, callback]) -- create a weak reference to 'object';
\n
"
"when 'object' is finalized, 'callback' will be called and passed
\n
"
"a reference to 'object'."
},
weakref_ref__doc__
},
{
NULL
,
NULL
,
0
,
NULL
}
};
...
...
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