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
3edcc783
Kaydet (Commit)
3edcc783
authored
Ara 24, 2013
tarafından
R David Murray
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#16832: s/integer/object/ in docs/docstring, and add whatsnew entry.
üst
5ea95249
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
6 deletions
+12
-6
abc.rst
Doc/library/abc.rst
+3
-3
3.4.rst
Doc/whatsnew/3.4.rst
+6
-0
abc.py
Lib/abc.py
+3
-3
No files found.
Doc/library/abc.rst
Dosyayı görüntüle @
3edcc783
...
@@ -318,9 +318,9 @@ The :mod:`abc` module also provides the following functions:
...
@@ -318,9 +318,9 @@ The :mod:`abc` module also provides the following functions:
Returns the current abstract base class cache token.
Returns the current abstract base class cache token.
The token is an opaque
integer identifying the current version of the
The token is an opaque
object (that supports equality testing) identifying
abstract base class cache for virtual subclasses. This number changes
the current version of the abstract base class cache for virtual subclasses.
with every call to :meth:`ABCMeta.register` on any ABC.
The token changes
with every call to :meth:`ABCMeta.register` on any ABC.
.. versionadded:: 3.4
.. versionadded:: 3.4
...
...
Doc/whatsnew/3.4.rst
Dosyayı görüntüle @
3edcc783
...
@@ -473,6 +473,12 @@ trace memory blocks allocated by Python. It provides the following information:
...
@@ -473,6 +473,12 @@ trace memory blocks allocated by Python. It provides the following information:
Improved Modules
Improved Modules
================
================
abc
---
New function :func:`abc.get_cache_token` can be used to know when to invalidate
caches that are affected by changes in the object graph. (Contributed
by Łukasz Langa in :issue:`16832`.)
aifc
aifc
----
----
...
...
Lib/abc.py
Dosyayı görüntüle @
3edcc783
...
@@ -241,8 +241,8 @@ class ABC(metaclass=ABCMeta):
...
@@ -241,8 +241,8 @@ class ABC(metaclass=ABCMeta):
def
get_cache_token
():
def
get_cache_token
():
"""Returns the current ABC cache token.
"""Returns the current ABC cache token.
The token is an opaque
integer identifying the current version of
The token is an opaque
object (supporting equality testing) identifying the
the ABC cache for virtual subclasses. This number changes with
current version of the ABC cache for virtual subclasses. The token changes
every call to ``register()`` on any ABC.
with
every call to ``register()`` on any ABC.
"""
"""
return
ABCMeta
.
_abc_invalidation_counter
return
ABCMeta
.
_abc_invalidation_counter
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