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
9c846366
Kaydet (Commit)
9c846366
authored
Nis 09, 2001
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix a number of bugs and omissions in the AddressList documentation, most
noted by Steve Holden. This closes SF bug #413876.
üst
17a781bc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
10 deletions
+23
-10
librfc822.tex
Doc/lib/librfc822.tex
+23
-10
No files found.
Doc/lib/librfc822.tex
Dosyayı görüntüle @
9c846366
...
...
@@ -238,24 +238,36 @@ be used to read the message content.
An
\class
{
AddressList
}
instance has the following methods:
\begin{methoddesc}
{__
len
__}{
name
}
\begin{methoddesc}
{__
len
__}{}
Return the number of addresses in the address list.
\end{methoddesc}
\begin{methoddesc}
{__
str
__}{
name
}
\begin{methoddesc}
{__
str
__}{}
Return a canonicalized string representation of the address list.
Addresses are rendered in "name" <host@domain> form, comma-separated.
\end{methoddesc}
\begin{methoddesc}
{__
add
__}{
name
}
Return an
\class
{
AddressList
}
instance that contains all addresses in
both
\class
{
AddressList
}
operands, with duplicates removed (set union).
\begin{methoddesc}
{__
add
__}{
alist
}
Return a new
\class
{
AddressList
}
instance that contains all addresses
in both
\class
{
AddressList
}
operands, with duplicates removed (set
union).
\end{methoddesc}
\begin{methoddesc}
{__
sub
__}{
name
}
Return an
\class
{
AddressList
}
instance that contains every address in the
left-hand
\class
{
AddressList
}
operand that is not present in the right-hand
address operand (set difference).
\begin{methoddesc}
{__
iadd
__}{
alist
}
In-place version of
\method
{__
add
__
()
}
; turns this
\class
{
AddressList
}
instance into the union of itself and the right-hand instance,
\var
{
alist
}
.
\end{methoddesc}
\begin{methoddesc}
{__
sub
__}{
alist
}
Return a new
\class
{
AddressList
}
instance that contains every address
in the left-hand
\class
{
AddressList
}
operand that is not present in
the right-hand address operand (set difference).
\end{methoddesc}
\begin{methoddesc}
{__
isub
__}{
alist
}
In-place version of
\method
{__
sub
__
()
}
, removing addresses in this
list which are also in
\var
{
alist
}
.
\end{methoddesc}
...
...
@@ -264,5 +276,6 @@ Finally, \class{AddressList} instances have one public instance variable:
\begin{memberdesc}
{
addresslist
}
A list of tuple string pairs, one per address. In each member, the
first is the canonicalized name part, the second is the
actual route-address (@-separated username-host.domain pair).
actual route-address (
\character
{
@
}
-separated username-host.domain
pair).
\end{memberdesc}
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