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
f9c8193b
Kaydet (Commit)
f9c8193b
authored
Nis 04, 2009
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
note how using iter* are unsafe while mutating and document iter(dict)
üst
91a1a071
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
stdtypes.rst
Doc/library/stdtypes.rst
+14
-0
No files found.
Doc/library/stdtypes.rst
Dosyayı görüntüle @
f9c8193b
...
@@ -1928,6 +1928,11 @@ pairs within braces, for example: ``{'jack': 4098, 'sjoerd': 4127}`` or ``{4098:
...
@@ -1928,6 +1928,11 @@ pairs within braces, for example: ``{'jack': 4098, 'sjoerd': 4127}`` or ``{4098:
.. versionadded:: 2.2
.. versionadded:: 2.2
.. describe:: iter(d)
Return an iterator over the keys of the dictionary. This is a shortcut
for :meth:`iterkeys`.
.. method:: clear()
.. method:: clear()
Remove all items from the dictionary.
Remove all items from the dictionary.
...
@@ -1980,6 +1985,9 @@ pairs within braces, for example: ``{'jack': 4098, 'sjoerd': 4127}`` or ``{4098:
...
@@ -1980,6 +1985,9 @@ pairs within braces, for example: ``{'jack': 4098, 'sjoerd': 4127}`` or ``{4098:
Return an iterator over the dictionary's ``(key, value)`` pairs. See the
Return an iterator over the dictionary's ``(key, value)`` pairs. See the
note for :meth:`dict.items`.
note for :meth:`dict.items`.
Using :meth:`iteritems` while adding or deleting entries in the dictionary
will raise a :exc:`RuntimeError`.
.. versionadded:: 2.2
.. versionadded:: 2.2
.. method:: iterkeys()
.. method:: iterkeys()
...
@@ -1987,6 +1995,9 @@ pairs within braces, for example: ``{'jack': 4098, 'sjoerd': 4127}`` or ``{4098:
...
@@ -1987,6 +1995,9 @@ pairs within braces, for example: ``{'jack': 4098, 'sjoerd': 4127}`` or ``{4098:
Return an iterator over the dictionary's keys. See the note for
Return an iterator over the dictionary's keys. See the note for
:meth:`dict.items`.
:meth:`dict.items`.
Using :meth:`iterkeys` while adding or deleting entries in the dictionary
will raise a :exc:`RuntimeError`.
.. versionadded:: 2.2
.. versionadded:: 2.2
.. method:: itervalues()
.. method:: itervalues()
...
@@ -1994,6 +2005,9 @@ pairs within braces, for example: ``{'jack': 4098, 'sjoerd': 4127}`` or ``{4098:
...
@@ -1994,6 +2005,9 @@ pairs within braces, for example: ``{'jack': 4098, 'sjoerd': 4127}`` or ``{4098:
Return an iterator over the dictionary's values. See the note for
Return an iterator over the dictionary's values. See the note for
:meth:`dict.items`.
:meth:`dict.items`.
Using :meth:`itervalues` while adding or deleting entries in the
dictionary will raise a :exc:`RuntimeError`.
.. versionadded:: 2.2
.. versionadded:: 2.2
.. method:: keys()
.. method:: keys()
...
...
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