Commit | Line | Data |
---|---|---|
920dae64 AT |
1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
2 | <html> | |
3 | <head> | |
4 | <link rel="STYLESHEET" href="ref.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="ref.html" title='Python Reference Manual' /> | |
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="next" href="introduction.html" /> | |
13 | <link rel="prev" href="front.html" /> | |
14 | <link rel="parent" href="ref.html" /> | |
15 | <link rel="next" href="introduction.html" /> | |
16 | <meta name='aesop' content='information' /> | |
17 | <title>Contents</title> | |
18 | </head> | |
19 | <body> | |
20 | <DIV CLASS="navigation"> | |
21 | <div id='top-navigation-panel' xml:id='top-navigation-panel'> | |
22 | <table align="center" width="100%" cellpadding="0" cellspacing="2"> | |
23 | <tr> | |
24 | <td class='online-navigation'><a rel="prev" title="Front Matter" | |
25 | href="front.html"><img src='../icons/previous.png' | |
26 | border='0' height='32' alt='Previous Page' width='32' /></A></td> | |
27 | <td class='online-navigation'><a rel="parent" title="Python Reference Manual" | |
28 | href="ref.html"><img src='../icons/up.png' | |
29 | border='0' height='32' alt='Up One Level' width='32' /></A></td> | |
30 | <td class='online-navigation'><a rel="next" title="1. Introduction" | |
31 | href="introduction.html"><img src='../icons/next.png' | |
32 | border='0' height='32' alt='Next Page' width='32' /></A></td> | |
33 | <td align="center" width="100%">Python Reference Manual</td> | |
34 | <td class='online-navigation'><img src='../icons/blank.png' | |
35 | border='0' height='32' alt='' width='32' /></td> | |
36 | <td class='online-navigation'><img src='../icons/blank.png' | |
37 | border='0' height='32' alt='' width='32' /></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="front.html">Front Matter</A> | |
45 | <b class="navlabel">Up:</b> | |
46 | <a class="sectref" rel="parent" href="ref.html">Python Reference Manual</A> | |
47 | <b class="navlabel">Next:</b> | |
48 | <a class="sectref" rel="next" href="introduction.html">1. Introduction</A> | |
49 | </div> | |
50 | <hr /></div> | |
51 | </DIV> | |
52 | <!--End of Navigation Panel--> | |
53 | <BR><h2><A NAME="SECTION002000000000000000000"> | |
54 | Contents</A> | |
55 | </h2> | |
56 | <!--Table of Contents--> | |
57 | ||
58 | <UL CLASS="TofC"> | |
59 | <LI><A href="introduction.html">1. Introduction</a> | |
60 | <UL> | |
61 | <LI><A href="implementations.html">1.1 Alternate Implementations</a> | |
62 | <LI><A href="notation.html">1.2 Notation</a> | |
63 | </ul> | |
64 | <LI><A href="lexical.html">2. Lexical analysis</a> | |
65 | <UL> | |
66 | <LI><A href="line-structure.html">2.1 Line structure</a> | |
67 | <UL> | |
68 | <LI><A href="logical.html">2.1.1 Logical lines</a> | |
69 | <LI><A href="physical.html">2.1.2 Physical lines</a> | |
70 | <LI><A href="comments.html">2.1.3 Comments</a> | |
71 | <LI><A href="encodings.html">2.1.4 Encoding declarations</a> | |
72 | <LI><A href="explicit-joining.html">2.1.5 Explicit line joining</a> | |
73 | <LI><A href="implicit-joining.html">2.1.6 Implicit line joining</a> | |
74 | <LI><A href="blank-lines.html">2.1.7 Blank lines</a> | |
75 | <LI><A href="indentation.html">2.1.8 Indentation</a> | |
76 | <LI><A href="whitespace.html">2.1.9 Whitespace between tokens</a> | |
77 | </ul> | |
78 | <LI><A href="other-tokens.html">2.2 Other tokens</a> | |
79 | <LI><A href="identifiers.html">2.3 Identifiers and keywords</a> | |
80 | <UL> | |
81 | <LI><A href="keywords.html">2.3.1 Keywords</a> | |
82 | <LI><A href="id-classes.html">2.3.2 Reserved classes of identifiers</a> | |
83 | </ul> | |
84 | <LI><A href="literals.html">2.4 Literals</a> | |
85 | <UL> | |
86 | <LI><A href="strings.html">2.4.1 String literals</a> | |
87 | <LI><A href="string-catenation.html">2.4.2 String literal concatenation</a> | |
88 | <LI><A href="numbers.html">2.4.3 Numeric literals</a> | |
89 | <LI><A href="integers.html">2.4.4 Integer and long integer literals</a> | |
90 | <LI><A href="floating.html">2.4.5 Floating point literals</a> | |
91 | <LI><A href="imaginary.html">2.4.6 Imaginary literals</a> | |
92 | </ul> | |
93 | <LI><A href="operators.html">2.5 Operators</a> | |
94 | <LI><A href="delimiters.html">2.6 Delimiters</a> | |
95 | </ul> | |
96 | <LI><A href="datamodel.html">3. Data model</a> | |
97 | <UL> | |
98 | <LI><A href="objects.html">3.1 Objects, values and types</a> | |
99 | <LI><A href="types.html">3.2 The standard type hierarchy</a> | |
100 | <LI><A href="specialnames.html">3.3 Special method names</a> | |
101 | <UL> | |
102 | <LI><A href="customization.html">3.3.1 Basic customization</a> | |
103 | <LI><A href="attribute-access.html">3.3.2 Customizing attribute access</a> | |
104 | <LI><A href="metaclasses.html">3.3.3 Customizing class creation</a> | |
105 | <LI><A href="callable-types.html">3.3.4 Emulating callable objects</a> | |
106 | <LI><A href="sequence-types.html">3.3.5 Emulating container types</a> | |
107 | <LI><A href="sequence-methods.html">3.3.6 Additional methods for emulation of sequence types</a> | |
108 | <LI><A href="numeric-types.html">3.3.7 Emulating numeric types</a> | |
109 | <LI><A href="coercion-rules.html">3.3.8 Coercion rules</a> | |
110 | </ul> | |
111 | </ul> | |
112 | <LI><A href="execmodel.html">4. Execution model</a> | |
113 | <UL> | |
114 | <LI><A href="naming.html">4.1 Naming and binding</a> | |
115 | <UL> | |
116 | <LI><A href="dynamic-features.html">4.1.1 Interaction with dynamic features</a> | |
117 | </ul> | |
118 | <LI><A href="exceptions.html">4.2 Exceptions</a> | |
119 | </ul> | |
120 | <LI><A href="expressions.html">5. Expressions</a> | |
121 | <UL> | |
122 | <LI><A href="conversions.html">5.1 Arithmetic conversions</a> | |
123 | <LI><A href="atoms.html">5.2 Atoms</a> | |
124 | <UL> | |
125 | <LI><A href="atom-identifiers.html">5.2.1 Identifiers (Names)</a> | |
126 | <LI><A href="atom-literals.html">5.2.2 Literals</a> | |
127 | <LI><A href="parenthesized.html">5.2.3 Parenthesized forms</a> | |
128 | <LI><A href="lists.html">5.2.4 List displays</a> | |
129 | <LI><A href="genexpr.html">5.2.5 Generator expressions</a> | |
130 | <LI><A href="dict.html">5.2.6 Dictionary displays</a> | |
131 | <LI><A href="string-conversions.html">5.2.7 String conversions</a> | |
132 | </ul> | |
133 | <LI><A href="primaries.html">5.3 Primaries</a> | |
134 | <UL> | |
135 | <LI><A href="attribute-references.html">5.3.1 Attribute references</a> | |
136 | <LI><A href="subscriptions.html">5.3.2 Subscriptions</a> | |
137 | <LI><A href="slicings.html">5.3.3 Slicings</a> | |
138 | <LI><A href="calls.html">5.3.4 Calls</a> | |
139 | </ul> | |
140 | <LI><A href="power.html">5.4 The power operator</a> | |
141 | <LI><A href="unary.html">5.5 Unary arithmetic operations</a> | |
142 | <LI><A href="binary.html">5.6 Binary arithmetic operations</a> | |
143 | <LI><A href="shifting.html">5.7 Shifting operations</a> | |
144 | <LI><A href="bitwise.html">5.8 Binary bit-wise operations</a> | |
145 | <LI><A href="comparisons.html">5.9 Comparisons</a> | |
146 | <LI><A href="Booleans.html">5.10 Boolean operations</a> | |
147 | <LI><A href="lambdas.html">5.11 Lambdas</a> | |
148 | <LI><A href="exprlists.html">5.12 Expression lists</a> | |
149 | <LI><A href="evalorder.html">5.13 Evaluation order</a> | |
150 | <LI><A href="summary.html">5.14 Summary</a> | |
151 | </ul> | |
152 | <LI><A href="simple.html">6. Simple statements</a> | |
153 | <UL> | |
154 | <LI><A href="exprstmts.html">6.1 Expression statements</a> | |
155 | <LI><A href="assert.html">6.2 Assert statements</a> | |
156 | <LI><A href="assignment.html">6.3 Assignment statements</a> | |
157 | <UL> | |
158 | <LI><A href="augassign.html">6.3.1 Augmented assignment statements</a> | |
159 | </ul> | |
160 | <LI><A href="pass.html">6.4 The pass statement</a> | |
161 | <LI><A href="del.html">6.5 The del statement</a> | |
162 | <LI><A href="print.html">6.6 The print statement</a> | |
163 | <LI><A href="return.html">6.7 The return statement</a> | |
164 | <LI><A href="yield.html">6.8 The yield statement</a> | |
165 | <LI><A href="raise.html">6.9 The raise statement</a> | |
166 | <LI><A href="break.html">6.10 The break statement</a> | |
167 | <LI><A href="continue.html">6.11 The continue statement</a> | |
168 | <LI><A href="import.html">6.12 The import statement</a> | |
169 | <UL> | |
170 | <LI><A href="future.html">6.12.1 Future statements</a> | |
171 | </ul> | |
172 | <LI><A href="global.html">6.13 The global statement</a> | |
173 | <LI><A href="exec.html">6.14 The exec statement</a> | |
174 | </ul> | |
175 | <LI><A href="compound.html">7. Compound statements</a> | |
176 | <UL> | |
177 | <LI><A href="if.html">7.1 The if statement</a> | |
178 | <LI><A href="while.html">7.2 The while statement</a> | |
179 | <LI><A href="for.html">7.3 The for statement</a> | |
180 | <LI><A href="try.html">7.4 The try statement</a> | |
181 | <LI><A href="function.html">7.5 Function definitions</a> | |
182 | <LI><A href="class.html">7.6 Class definitions</a> | |
183 | </ul> | |
184 | <LI><A href="top-level.html">8. Top-level components</a> | |
185 | <UL> | |
186 | <LI><A href="programs.html">8.1 Complete Python programs</a> | |
187 | <LI><A href="file-input.html">8.2 File input</a> | |
188 | <LI><A href="interactive.html">8.3 Interactive input</a> | |
189 | <LI><A href="expression-input.html">8.4 Expression input</a> | |
190 | </ul> | |
191 | <LI><A href="node105.html">A. History and License</a> | |
192 | <UL> | |
193 | <LI><A href="node106.html">A.1 History of the software</a> | |
194 | <LI><A href="node107.html">A.2 Terms and conditions for accessing or otherwise using Python</a> | |
195 | <LI><A href="node108.html">A.3 Licenses and Acknowledgements for Incorporated Software</a> | |
196 | <UL> | |
197 | <LI><A href="node109.html">A.3.1 Mersenne Twister</a> | |
198 | <LI><A href="node110.html">A.3.2 Sockets</a> | |
199 | <LI><A href="node111.html">A.3.3 Floating point exception control</a> | |
200 | <LI><A href="node112.html">A.3.4 MD5 message digest algorithm</a> | |
201 | <LI><A href="node113.html">A.3.5 Asynchronous socket services</a> | |
202 | <LI><A href="node114.html">A.3.6 Cookie management</a> | |
203 | <LI><A href="node115.html">A.3.7 Profiling</a> | |
204 | <LI><A href="node116.html">A.3.8 Execution tracing</a> | |
205 | <LI><A href="node117.html">A.3.9 UUencode and UUdecode functions</a> | |
206 | <LI><A href="node118.html">A.3.10 XML Remote Procedure Calls</a> | |
207 | </ul> | |
208 | </ul> | |
209 | <LI><A href="genindex.html">Index</a> | |
210 | </ul> | |
211 | <!--End of Table of Contents--> | |
212 | <P> | |
213 | ||
214 | <DIV CLASS="navigation"> | |
215 | <div class='online-navigation'> | |
216 | <p></p><hr /> | |
217 | <table align="center" width="100%" cellpadding="0" cellspacing="2"> | |
218 | <tr> | |
219 | <td class='online-navigation'><a rel="prev" title="Front Matter" | |
220 | href="front.html"><img src='../icons/previous.png' | |
221 | border='0' height='32' alt='Previous Page' width='32' /></A></td> | |
222 | <td class='online-navigation'><a rel="parent" title="Python Reference Manual" | |
223 | href="ref.html"><img src='../icons/up.png' | |
224 | border='0' height='32' alt='Up One Level' width='32' /></A></td> | |
225 | <td class='online-navigation'><a rel="next" title="1. Introduction" | |
226 | href="introduction.html"><img src='../icons/next.png' | |
227 | border='0' height='32' alt='Next Page' width='32' /></A></td> | |
228 | <td align="center" width="100%">Python Reference Manual</td> | |
229 | <td class='online-navigation'><img src='../icons/blank.png' | |
230 | border='0' height='32' alt='' width='32' /></td> | |
231 | <td class='online-navigation'><img src='../icons/blank.png' | |
232 | border='0' height='32' alt='' width='32' /></td> | |
233 | <td class='online-navigation'><a rel="index" title="Index" | |
234 | href="genindex.html"><img src='../icons/index.png' | |
235 | border='0' height='32' alt='Index' width='32' /></A></td> | |
236 | </tr></table> | |
237 | <div class='online-navigation'> | |
238 | <b class="navlabel">Previous:</b> | |
239 | <a class="sectref" rel="prev" href="front.html">Front Matter</A> | |
240 | <b class="navlabel">Up:</b> | |
241 | <a class="sectref" rel="parent" href="ref.html">Python Reference Manual</A> | |
242 | <b class="navlabel">Next:</b> | |
243 | <a class="sectref" rel="next" href="introduction.html">1. Introduction</A> | |
244 | </div> | |
245 | </div> | |
246 | <hr /> | |
247 | <span class="release-info">Release 2.4.2, documentation updated on 28 September 2005.</span> | |
248 | </DIV> | |
249 | <!--End of Navigation Panel--> | |
250 | <ADDRESS> | |
251 | See <i><a href="about.html">About this document...</a></i> for information on suggesting changes. | |
252 | </ADDRESS> | |
253 | </BODY> | |
254 | </HTML> |