Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / sam-t2 / devtools / v8plus / html / python / lib / node581.html
CommitLineData
920dae64
AT
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2<html>
3<head>
4<link rel="STYLESHEET" href="lib.css" type='text/css' />
5<link rel="SHORTCUT ICON" href="../icons/pyfav.png" type="image/png" />
6<link rel='start' href='../index.html' title='Python Documentation Index' />
7<link rel="first" href="lib.html" title='Python Library Reference' />
8<link rel='contents' href='contents.html' title="Contents" />
9<link rel='index' href='genindex.html' title='Index' />
10<link rel='last' href='about.html' title='About this document...' />
11<link rel='help' href='about.html' title='About this document...' />
12<link rel="prev" href="module-email.Message.html" />
13<link rel="parent" href="module-email.Message.html" />
14<link rel="next" href="module-email.Parser.html" />
15<meta name='aesop' content='information' />
16<title>12.2.1.1 Deprecated methods</title>
17</head>
18<body>
19<DIV CLASS="navigation">
20<div id='top-navigation-panel' xml:id='top-navigation-panel'>
21<table align="center" width="100%" cellpadding="0" cellspacing="2">
22<tr>
23<td class='online-navigation'><a rel="prev" title="12.2.1 Representing an email"
24 href="module-email.Message.html"><img src='../icons/previous.png'
25 border='0' height='32' alt='Previous Page' width='32' /></A></td>
26<td class='online-navigation'><a rel="parent" title="12.2.1 Representing an email"
27 href="module-email.Message.html"><img src='../icons/up.png'
28 border='0' height='32' alt='Up One Level' width='32' /></A></td>
29<td class='online-navigation'><a rel="next" title="12.2.2 Parsing email messages"
30 href="module-email.Parser.html"><img src='../icons/next.png'
31 border='0' height='32' alt='Next Page' width='32' /></A></td>
32<td align="center" width="100%">Python Library Reference</td>
33<td class='online-navigation'><a rel="contents" title="Table of Contents"
34 href="contents.html"><img src='../icons/contents.png'
35 border='0' height='32' alt='Contents' width='32' /></A></td>
36<td class='online-navigation'><a href="modindex.html" title="Module Index"><img src='../icons/modules.png'
37 border='0' height='32' alt='Module Index' width='32' /></a></td>
38<td class='online-navigation'><a rel="index" title="Index"
39 href="genindex.html"><img src='../icons/index.png'
40 border='0' height='32' alt='Index' width='32' /></A></td>
41</tr></table>
42<div class='online-navigation'>
43<b class="navlabel">Previous:</b>
44<a class="sectref" rel="prev" href="module-email.Message.html">12.2.1 Representing an email</A>
45<b class="navlabel">Up:</b>
46<a class="sectref" rel="parent" href="module-email.Message.html">12.2.1 Representing an email</A>
47<b class="navlabel">Next:</b>
48<a class="sectref" rel="next" href="module-email.Parser.html">12.2.2 Parsing email messages</A>
49</div>
50<hr /></div>
51</DIV>
52<!--End of Navigation Panel-->
53
54<H3><A NAME="SECTION0014211000000000000000">
5512.2.1.1 Deprecated methods</A>
56</H3>
57
58<P>
59
60<span class="versionnote">Changed in version 2.4:
61The <tt class="method">add_payload()</tt> method was removed; use the
62<tt class="method">attach()</tt> method instead.</span>
63
64<P>
65The following methods are deprecated. They are documented here for
66completeness.
67
68<P>
69<dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
70 <td><nobr><b><tt id='l2h-3872' xml:id='l2h-3872' class="method">get_type</tt></b>(</nobr></td>
71 <td><var></var><big>[</big><var>failobj</var><big>]</big><var></var>)</td></tr></table></dt>
72<dd>
73Return the message's content type, as a string of the form
74<span class="mimetype">maintype/subtype</span> as taken from the
75<span class="mailheader">Content-Type:</span> header.
76The returned string is coerced to lowercase.
77
78<P>
79If there is no <span class="mailheader">Content-Type:</span> header in the message,
80<var>failobj</var> is returned (defaults to <code>None</code>).
81
82<P>
83<div class="versionnote"><b>Deprecated since release 2.2.2.</b>
84Use the <tt class="method">get_content_type()</tt> method instead.</div><p></p>
85</dl>
86
87<P>
88<dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
89 <td><nobr><b><tt id='l2h-3873' xml:id='l2h-3873' class="method">get_main_type</tt></b>(</nobr></td>
90 <td><var></var><big>[</big><var>failobj</var><big>]</big><var></var>)</td></tr></table></dt>
91<dd>
92Return the message's <em>main</em> content type. This essentially returns the
93<var>maintype</var> part of the string returned by <tt class="method">get_type()</tt>, with the
94same semantics for <var>failobj</var>.
95
96<P>
97<div class="versionnote"><b>Deprecated since release 2.2.2.</b>
98Use the <tt class="method">get_content_maintype()</tt> method instead.</div><p></p>
99</dl>
100
101<P>
102<dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
103 <td><nobr><b><tt id='l2h-3874' xml:id='l2h-3874' class="method">get_subtype</tt></b>(</nobr></td>
104 <td><var></var><big>[</big><var>failobj</var><big>]</big><var></var>)</td></tr></table></dt>
105<dd>
106Return the message's sub-content type. This essentially returns the
107<var>subtype</var> part of the string returned by <tt class="method">get_type()</tt>, with the
108same semantics for <var>failobj</var>.
109
110<P>
111<div class="versionnote"><b>Deprecated since release 2.2.2.</b>
112Use the <tt class="method">get_content_subtype()</tt> method instead.</div><p></p>
113</dl>
114
115<P>
116
117<DIV CLASS="navigation">
118<div class='online-navigation'>
119<p></p><hr />
120<table align="center" width="100%" cellpadding="0" cellspacing="2">
121<tr>
122<td class='online-navigation'><a rel="prev" title="12.2.1 Representing an email"
123 href="module-email.Message.html"><img src='../icons/previous.png'
124 border='0' height='32' alt='Previous Page' width='32' /></A></td>
125<td class='online-navigation'><a rel="parent" title="12.2.1 Representing an email"
126 href="module-email.Message.html"><img src='../icons/up.png'
127 border='0' height='32' alt='Up One Level' width='32' /></A></td>
128<td class='online-navigation'><a rel="next" title="12.2.2 Parsing email messages"
129 href="module-email.Parser.html"><img src='../icons/next.png'
130 border='0' height='32' alt='Next Page' width='32' /></A></td>
131<td align="center" width="100%">Python Library Reference</td>
132<td class='online-navigation'><a rel="contents" title="Table of Contents"
133 href="contents.html"><img src='../icons/contents.png'
134 border='0' height='32' alt='Contents' width='32' /></A></td>
135<td class='online-navigation'><a href="modindex.html" title="Module Index"><img src='../icons/modules.png'
136 border='0' height='32' alt='Module Index' width='32' /></a></td>
137<td class='online-navigation'><a rel="index" title="Index"
138 href="genindex.html"><img src='../icons/index.png'
139 border='0' height='32' alt='Index' width='32' /></A></td>
140</tr></table>
141<div class='online-navigation'>
142<b class="navlabel">Previous:</b>
143<a class="sectref" rel="prev" href="module-email.Message.html">12.2.1 Representing an email</A>
144<b class="navlabel">Up:</b>
145<a class="sectref" rel="parent" href="module-email.Message.html">12.2.1 Representing an email</A>
146<b class="navlabel">Next:</b>
147<a class="sectref" rel="next" href="module-email.Parser.html">12.2.2 Parsing email messages</A>
148</div>
149</div>
150<hr />
151<span class="release-info">Release 2.4.2, documentation updated on 28 September 2005.</span>
152</DIV>
153<!--End of Navigation Panel-->
154<ADDRESS>
155See <i><a href="about.html">About this document...</a></i> for information on suggesting changes.
156</ADDRESS>
157</BODY>
158</HTML>