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
a4127173
Kaydet (Commit)
a4127173
authored
Eki 04, 2008
tarafından
Andrew M. Kuchling
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Punctuation fix; expand dict.update docstring to be clearer
üst
4d164158
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
dictobject.c
Objects/dictobject.c
+6
-4
No files found.
Objects/dictobject.c
Dosyayı görüntüle @
a4127173
...
...
@@ -2065,12 +2065,12 @@ PyDoc_STRVAR(setdefault_doc__,
"D.setdefault(k[,d]) -> D.get(k,d), also set D[k]=d if k not in D"
);
PyDoc_STRVAR
(
pop__doc__
,
"D.pop(k[,d]) -> v, remove specified key and return the corresponding value
\n
\
"D.pop(k[,d]) -> v, remove specified key and return the corresponding value
.
\n
\
If key is not found, d is returned if given, otherwise KeyError is raised"
);
PyDoc_STRVAR
(
popitem__doc__
,
"D.popitem() -> (k, v), remove and return some (key, value) pair as a
\n
\
2-tuple; but raise KeyError if D is empty"
);
2-tuple; but raise KeyError if D is empty
.
"
);
PyDoc_STRVAR
(
keys__doc__
,
"D.keys() -> list of D's keys"
);
...
...
@@ -2082,8 +2082,10 @@ PyDoc_STRVAR(values__doc__,
"D.values() -> list of D's values"
);
PyDoc_STRVAR
(
update__doc__
,
"D.update(E, **F) -> None. Update D from E and F: for k in E: D[k] = E[k]
\n
\
(if E has keys else: for (k, v) in E: D[k] = v) then: for k in F: D[k] = F[k]"
);
"D.update(E, **F) -> None. Update D from dict/iterable E and F.
\n
"
"If E has a .keys() method, does: for k in E: D[k] = E[k]
\n
\
If E lacks .keys() method, does: for (k, v) in E: D[k] = v
\n
\
In either case, this is followed by: for k in F: D[k] = F[k]"
);
PyDoc_STRVAR
(
fromkeys__doc__
,
"dict.fromkeys(S[,v]) -> New dict with keys from S and values equal to v.
\n
\
...
...
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