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="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="next" href="python.html" /> | |
13 | <link rel="prev" href="intro.html" /> | |
14 | <link rel="parent" href="lib.html" /> | |
15 | <link rel="next" href="built-in-funcs.html" /> | |
16 | <meta name='aesop' content='information' /> | |
17 | <title>2. Built-In Objects </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="1. Introduction" | |
25 | href="intro.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 Library Reference" | |
28 | href="lib.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="2.1 Built-in Functions" | |
31 | href="built-in-funcs.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 Library Reference</td> | |
34 | <td class='online-navigation'><a rel="contents" title="Table of Contents" | |
35 | href="contents.html"><img src='../icons/contents.png' | |
36 | border='0' height='32' alt='Contents' width='32' /></A></td> | |
37 | <td class='online-navigation'><a href="modindex.html" title="Module Index"><img src='../icons/modules.png' | |
38 | border='0' height='32' alt='Module Index' width='32' /></a></td> | |
39 | <td class='online-navigation'><a rel="index" title="Index" | |
40 | href="genindex.html"><img src='../icons/index.png' | |
41 | border='0' height='32' alt='Index' width='32' /></A></td> | |
42 | </tr></table> | |
43 | <div class='online-navigation'> | |
44 | <b class="navlabel">Previous:</b> | |
45 | <a class="sectref" rel="prev" href="intro.html">1. Introduction</A> | |
46 | <b class="navlabel">Up:</b> | |
47 | <a class="sectref" rel="parent" href="lib.html">Python Library Reference</A> | |
48 | <b class="navlabel">Next:</b> | |
49 | <a class="sectref" rel="next" href="built-in-funcs.html">2.1 Built-in Functions</A> | |
50 | </div> | |
51 | <hr /></div> | |
52 | </DIV> | |
53 | <!--End of Navigation Panel--> | |
54 | ||
55 | <H1><A NAME="SECTION004000000000000000000"></A><A NAME="builtin"></A> | |
56 | <BR> | |
57 | 2. Built-In Objects | |
58 | </H1> | |
59 | ||
60 | <P> | |
61 | Names for built-in exceptions and functions and a number of constants are | |
62 | found in a separate | |
63 | symbol table. This table is searched last when the interpreter looks | |
64 | up the meaning of a name, so local and global | |
65 | user-defined names can override built-in names. Built-in types are | |
66 | described together here for easy reference.<A NAME="tex2html1" | |
67 | HREF="#foot93"><SUP>2.1</SUP></A><a id='l2h-1' xml:id='l2h-1'></a><a id='l2h-2' xml:id='l2h-2'></a><a id='l2h-3' xml:id='l2h-3'></a><a id='l2h-4' xml:id='l2h-4'></a><a id='l2h-5' xml:id='l2h-5'></a> | |
68 | ||
69 | <P> | |
70 | The tables in this chapter document the priorities of operators by | |
71 | listing them in order of ascending priority (within a table) and | |
72 | grouping operators that have the same priority in the same box. | |
73 | Binary operators of the same priority group from left to right. | |
74 | (Unary operators group from right to left, but there you have no real | |
75 | choice.) See chapter 5 of the <em class="citetitle"><a | |
76 | href="../ref/ref.html" | |
77 | title="Python | |
78 | Reference Manual" | |
79 | >Python | |
80 | Reference Manual</a></em> for the complete picture on operator priorities. | |
81 | <BR><HR><H4>Footnotes</H4> | |
82 | <DL> | |
83 | <DT><A NAME="foot93">... reference.</A><A | |
84 | href="builtin.html#tex2html1"><SUP>2.1</SUP></A></DT> | |
85 | <DD> | |
86 | Most descriptions sorely lack explanations of the exceptions | |
87 | that may be raised -- this will be fixed in a future version of | |
88 | this manual. | |
89 | ||
90 | </DD> | |
91 | </DL> | |
92 | <p><br /></p><hr class='online-navigation' /> | |
93 | <div class='online-navigation'> | |
94 | <!--Table of Child-Links--> | |
95 | <A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></a> | |
96 | ||
97 | <UL CLASS="ChildLinks"> | |
98 | <LI><A href="built-in-funcs.html">2.1 Built-in Functions</a> | |
99 | <LI><A href="non-essential-built-in-funcs.html">2.2 Non-essential Built-in Functions</a> | |
100 | <LI><A href="types.html">2.3 Built-in Types</a> | |
101 | <UL> | |
102 | <LI><A href="truth.html">2.3.1 Truth Value Testing</a> | |
103 | <LI><A href="boolean.html">2.3.2 Boolean Operations -- | |
104 | <tt class="keyword">and</tt>, <tt class="keyword">or</tt>, <tt class="keyword">not</tt></a> | |
105 | <LI><A href="comparisons.html">2.3.3 Comparisons</a> | |
106 | <LI><A href="typesnumeric.html">2.3.4 Numeric Types -- | |
107 | <tt class="class">int</tt>, <tt class="class">float</tt>, <tt class="class">long</tt>, <tt class="class">complex</tt></a> | |
108 | <UL> | |
109 | <LI><A href="bitstring-ops.html">2.3.4.1 Bit-string Operations on Integer Types</a> | |
110 | </ul> | |
111 | <LI><A href="typeiter.html">2.3.5 Iterator Types</a> | |
112 | <LI><A href="typesseq.html">2.3.6 Sequence Types -- | |
113 | <tt class="class">str</tt>, <tt class="class">unicode</tt>, <tt class="class">list</tt>, | |
114 | <tt class="class">tuple</tt>, <tt class="class">buffer</tt>, <tt class="class">xrange</tt></a> | |
115 | <UL> | |
116 | <LI><A href="string-methods.html">2.3.6.1 String Methods</a> | |
117 | <LI><A href="typesseq-strings.html">2.3.6.2 String Formatting Operations</a> | |
118 | <LI><A href="typesseq-xrange.html">2.3.6.3 XRange Type</a> | |
119 | <LI><A href="typesseq-mutable.html">2.3.6.4 Mutable Sequence Types</a> | |
120 | </ul> | |
121 | <LI><A href="types-set.html">2.3.7 Set Types -- | |
122 | <tt class="class">set</tt>, <tt class="class">frozenset</tt></a> | |
123 | <LI><A href="typesmapping.html">2.3.8 Mapping Types -- classdict</a> | |
124 | <LI><A href="bltin-file-objects.html">2.3.9 File Objects</a> | |
125 | <LI><A href="typesother.html">2.3.10 Other Built-in Types</a> | |
126 | <UL> | |
127 | <LI><A href="typesmodules.html">2.3.10.1 Modules</a> | |
128 | <LI><A href="typesobjects.html">2.3.10.2 Classes and Class Instances</a> | |
129 | <LI><A href="typesfunctions.html">2.3.10.3 Functions</a> | |
130 | <LI><A href="typesmethods.html">2.3.10.4 Methods</a> | |
131 | <LI><A href="bltin-code-objects.html">2.3.10.5 Code Objects</a> | |
132 | <LI><A href="bltin-type-objects.html">2.3.10.6 Type Objects</a> | |
133 | <LI><A href="bltin-null-object.html">2.3.10.7 The Null Object</a> | |
134 | <LI><A href="bltin-ellipsis-object.html">2.3.10.8 The Ellipsis Object</a> | |
135 | <LI><A href="node31.html">2.3.10.9 Boolean Values</a> | |
136 | <LI><A href="typesinternal.html">2.3.10.10 Internal Objects</a> | |
137 | </ul> | |
138 | <LI><A href="specialattrs.html">2.3.11 Special Attributes</a> | |
139 | </ul> | |
140 | <LI><A href="module-exceptions.html">2.4 Built-in Exceptions</a> | |
141 | <LI><A href="node35.html">2.5 Built-in Constants</a> | |
142 | </ul> | |
143 | <!--End of Table of Child-Links--> | |
144 | </div> | |
145 | ||
146 | <DIV CLASS="navigation"> | |
147 | <div class='online-navigation'> | |
148 | <p></p><hr /> | |
149 | <table align="center" width="100%" cellpadding="0" cellspacing="2"> | |
150 | <tr> | |
151 | <td class='online-navigation'><a rel="prev" title="1. Introduction" | |
152 | href="intro.html"><img src='../icons/previous.png' | |
153 | border='0' height='32' alt='Previous Page' width='32' /></A></td> | |
154 | <td class='online-navigation'><a rel="parent" title="Python Library Reference" | |
155 | href="lib.html"><img src='../icons/up.png' | |
156 | border='0' height='32' alt='Up One Level' width='32' /></A></td> | |
157 | <td class='online-navigation'><a rel="next" title="2.1 Built-in Functions" | |
158 | href="built-in-funcs.html"><img src='../icons/next.png' | |
159 | border='0' height='32' alt='Next Page' width='32' /></A></td> | |
160 | <td align="center" width="100%">Python Library Reference</td> | |
161 | <td class='online-navigation'><a rel="contents" title="Table of Contents" | |
162 | href="contents.html"><img src='../icons/contents.png' | |
163 | border='0' height='32' alt='Contents' width='32' /></A></td> | |
164 | <td class='online-navigation'><a href="modindex.html" title="Module Index"><img src='../icons/modules.png' | |
165 | border='0' height='32' alt='Module Index' width='32' /></a></td> | |
166 | <td class='online-navigation'><a rel="index" title="Index" | |
167 | href="genindex.html"><img src='../icons/index.png' | |
168 | border='0' height='32' alt='Index' width='32' /></A></td> | |
169 | </tr></table> | |
170 | <div class='online-navigation'> | |
171 | <b class="navlabel">Previous:</b> | |
172 | <a class="sectref" rel="prev" href="intro.html">1. Introduction</A> | |
173 | <b class="navlabel">Up:</b> | |
174 | <a class="sectref" rel="parent" href="lib.html">Python Library Reference</A> | |
175 | <b class="navlabel">Next:</b> | |
176 | <a class="sectref" rel="next" href="built-in-funcs.html">2.1 Built-in Functions</A> | |
177 | </div> | |
178 | </div> | |
179 | <hr /> | |
180 | <span class="release-info">Release 2.4.2, documentation updated on 28 September 2005.</span> | |
181 | </DIV> | |
182 | <!--End of Navigation Panel--> | |
183 | <ADDRESS> | |
184 | See <i><a href="about.html">About this document...</a></i> for information on suggesting changes. | |
185 | </ADDRESS> | |
186 | </BODY> | |
187 | </HTML> |