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
3a5ec574
Kaydet (Commit)
3a5ec574
authored
Agu 08, 2001
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Clean up some of the markup here -- be more consistent in the use of
semantic labels instead of presentational markup.
üst
a7d608d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
libmailcap.tex
Doc/lib/libmailcap.tex
+9
-9
No files found.
Doc/lib/libmailcap.tex
Dosyayı görüntüle @
3a5ec574
...
...
@@ -25,7 +25,7 @@ most \UNIX{} systems.
filename
\optional
{
, plist
}}}}
Return a 2-tuple; the first element is a string containing the command
line to be executed
(which can be passed to
\
code
{
os.system()
}
), and the second element is
(which can be passed to
\
function
{
os.system()
}
), and the second element is
the mailcap entry for a given MIME type. If no matching MIME
type can be found,
\code
{
(None, None)
}
is returned.
...
...
@@ -44,25 +44,25 @@ usually you'll override it by specifying a filename.
\var
{
plist
}
can be a list containing named parameters; the default
value is simply an empty list. Each entry in the list must be a
string containing the parameter name, an equals sign (
\c
ode
{
=
}
), and the
parameter's value. Mailcap entries can contain
string containing the parameter name, an equals sign (
\c
haracter
{
=
}
),
and the
parameter's value. Mailcap entries can contain
named parameters like
\code
{
\%\{
foo
\}
}
, which will be replaced by the
value of the parameter named 'foo'. For example, if the command line
\samp
{
showpartial
\%\{
id
\}\ \%\{
number
\}\ \%\{
total
\}
}
was in a mailcap file, and
\var
{
plist
}
was set to
\code
{
['id=1',
'number=2', 'total=3']
}
, the resulting command line would be
\code
{
"showpartial 1 2 3"
}
.
\code
{
'showpartial 1 2 3'
}
.
In a mailcap file, the
"test"
field can optionally be specified to
test some external condition (
e.g.,
the machine architecture, or the
In a mailcap file, the
``test''
field can optionally be specified to
test some external condition (
such as
the machine architecture, or the
window system in use) to determine whether or not the mailcap line
applies.
\
code
{
findmatch()
}
will automatically check such conditions
and skip the entry if the check fails.
applies.
\
function
{
findmatch()
}
will automatically check such
conditions
and skip the entry if the check fails.
\end{funcdesc}
\begin{funcdesc}
{
getcaps
}{}
Returns a dictionary mapping MIME types to a list of mailcap file
entries. This dictionary must be passed to the
\
code
{
findmatch()
}
entries. This dictionary must be passed to the
\
function
{
findmatch()
}
function. An entry is stored as a list of dictionaries, but it
shouldn't be necessary to know the details of this representation.
...
...
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