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
98cfab65
Kaydet (Commit)
98cfab65
authored
May 22, 2001
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
One more update related to the new get() and setdefault() methods on the
Message object.
üst
fa77e1a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
librfc822.tex
Doc/lib/librfc822.tex
+6
-5
No files found.
Doc/lib/librfc822.tex
Dosyayı görüntüle @
98cfab65
...
...
@@ -218,11 +218,12 @@ there is no matching header; and \code{len(\var{m})},
\code
{
\var
{
m
}
.get(name
\optional
{
, deafult
}
)
}
,
\code
{
\var
{
m
}
.has
_
key(name)
}
,
\code
{
\var
{
m
}
.keys()
}
,
\code
{
\var
{
m
}
.values()
}
\code
{
\var
{
m
}
.items()
}
, and
\code
{
\var
{
m
}
.setdefault(name
\optional
{
, default
}
)
}
act as expected
(and consistently).
\class
{
Message
}
instances also support the
mapping writable interface
\code
{
\var
{
m
}
[name] = value
}
and
\code
{
del
\var
{
m
}
[name]
}
.
\class
{
Message
}
objects do not support the
\method
{
clear()
}
,
\method
{
copy()
}
,
\method
{
popitem()
}
, or
\code
{
\var
{
m
}
.setdefault(name
\optional
{
, default
}
)
}
act as expected,
with the one difference that
\method
{
get()
}
and
\method
{
setdefault()
}
use an empty string as the default value.
\class
{
Message
}
instances
also support the mapping writable interface
\code
{
\var
{
m
}
[name] =
value
}
and
\code
{
del
\var
{
m
}
[name]
}
.
\class
{
Message
}
objects do not
support the
\method
{
clear()
}
,
\method
{
copy()
}
,
\method
{
popitem()
}
, or
\method
{
update()
}
methods of the mapping interface. (Support for
\method
{
.get()
}
and
\method
{
.setdefault()
}
was only added in Python
2.2.)
...
...
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