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
6f1d5431
Kaydet (Commit)
6f1d5431
authored
Nis 25, 2009
tarafından
Jeroen Ruigrok van der Werven
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Reformat paragraph.
üst
325a997e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
dict.rst
Doc/c-api/dict.rst
+10
-10
No files found.
Doc/c-api/dict.rst
Dosyayı görüntüle @
6f1d5431
...
@@ -146,16 +146,16 @@ Dictionary Objects
...
@@ -146,16 +146,16 @@ Dictionary Objects
.. cfunction:: int PyDict_Next(PyObject *p, Py_ssize_t *ppos, PyObject **pkey, PyObject **pvalue)
.. cfunction:: int PyDict_Next(PyObject *p, Py_ssize_t *ppos, PyObject **pkey, PyObject **pvalue)
Iterate over all key-value pairs in the dictionary *p*. The
:ctype:`Py_ssize_t`
Iterate over all key-value pairs in the dictionary *p*. The
referred to by *ppos* must be initialized to ``0`` prior to the first call
:ctype:`Py_ssize_t` referred to by *ppos* must be initialized to ``0``
to this function to start the iteration; the function returns true for each
prior to the first call to this function to start the iteration; the
pair in the dictionary, and false once all pairs have been reported. The
function returns true for each pair in the dictionary, and false once all
pa
rameters *pkey* and *pvalue* should either point to :ctype:`PyObject\*`
pa
irs have been reported. The parameters *pkey* and *pvalue* should either
variables that will be filled in with each key and value, respectively, or
point to :ctype:`PyObject\*` variables that will be filled in with each key
may be *NULL*. Any references returned through them are borrowed. *ppos*
and value, respectively, or may be *NULL*. Any references returned through
should not be altered during iteration. Its value represents offsets within
them are borrowed. *ppos* should not be altered during iteration. Its
the internal dictionary structure, and since the structure is sparse, the
value represents offsets within the internal dictionary structure, and
offsets are not consecutive.
since the structure is sparse, the
offsets are not consecutive.
For example::
For example::
...
...
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