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
3fc08d23
Kaydet (Commit)
3fc08d23
authored
Kas 15, 2001
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Group dict[ionary] news together; and use dict() instead of
dictionary().
üst
3d27df07
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
NEWS
Misc/NEWS
+4
-5
No files found.
Misc/NEWS
Dosyayı görüntüle @
3fc08d23
...
@@ -18,6 +18,10 @@ Type/class unification and new-style classes
...
@@ -18,6 +18,10 @@ Type/class unification and new-style classes
- The new builtin dictionary() constructor, and dictionary type, have
- The new builtin dictionary() constructor, and dictionary type, have
been renamed to dict. This reflects a decade of common usage.
been renamed to dict. This reflects a decade of common usage.
- dict() now accepts an iterable object producing 2-sequences. For
example, dict(d.items()) == d for any dictionary d. The argument,
and the elements of the argument, can be any iterable objects.
- New-style classes can now have a __del__ method, which is called
- New-style classes can now have a __del__ method, which is called
when the instance is deleted (just like for classic classes).
when the instance is deleted (just like for classic classes).
...
@@ -25,11 +29,6 @@ Type/class unification and new-style classes
...
@@ -25,11 +29,6 @@ Type/class unification and new-style classes
instances of new-style classes that have a __dict__ (unless the base
instances of new-style classes that have a __dict__ (unless the base
class forbids it).
class forbids it).
- dictionary() now accepts an iterable object producing 2-sequences.
For example, dictionary(d.items()) == d for any dictionary d. The
argument, and the elements of the argument, can be any iterable
objects.
- Methods of built-in types now properly check for keyword arguments
- Methods of built-in types now properly check for keyword arguments
(formerly these were silently ignored). The only built-in methods
(formerly these were silently ignored). The only built-in methods
that take keyword arguments are __call__, __init__ and __new__.
that take keyword arguments are __call__, __init__ and __new__.
...
...
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