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
f475729a
Kaydet (Commit)
f475729a
authored
Haz 15, 2019
tarafından
Géry Ogam
Kaydeden (comit)
Miss Islington (bot)
Haz 15, 2019
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Update weakref.rst (GH-14098)
üst
0237265e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
weakref.rst
Doc/library/weakref.rst
+6
-5
No files found.
Doc/library/weakref.rst
Dosyayı görüntüle @
f475729a
...
@@ -65,8 +65,8 @@ exposed by the :mod:`weakref` module for the benefit of advanced uses.
...
@@ -65,8 +65,8 @@ exposed by the :mod:`weakref` module for the benefit of advanced uses.
Not all objects can be weakly referenced; those objects which can include class
Not all objects can be weakly referenced; those objects which can include class
instances, functions written in Python (but not in C), instance methods, sets,
instances, functions written in Python (but not in C), instance methods, sets,
frozensets, some :term:`file objects <file object>`, :term:`generator
`\s, type
frozensets, some :term:`file objects <file object>`, :term:`generator
s <generator>`,
objects, sockets, arrays, deques, regular expression pattern objects, and code
type
objects, sockets, arrays, deques, regular expression pattern objects, and code
objects.
objects.
.. versionchanged:: 3.2
.. versionchanged:: 3.2
...
@@ -80,9 +80,10 @@ support weak references but can add support through subclassing::
...
@@ -80,9 +80,10 @@ support weak references but can add support through subclassing::
obj = Dict(red=1, green=2, blue=3) # this object is weak referenceable
obj = Dict(red=1, green=2, blue=3) # this object is weak referenceable
Other built-in types such as :class:`tuple` and :class:`int` do not support weak
.. impl-detail::
references even when subclassed (This is an implementation detail and may be
different across various Python implementations.).
Other built-in types such as :class:`tuple` and :class:`int` do not support weak
references even when subclassed.
Extension types can easily be made to support weak references; see
Extension types can easily be made to support weak references; see
:ref:`weakref-support`.
:ref:`weakref-support`.
...
...
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