Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / sam-t2 / devtools / v8plus / html / python / lib / builtin.html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<link rel="STYLESHEET" href="lib.css" type='text/css' />
<link rel="SHORTCUT ICON" href="../icons/pyfav.png" type="image/png" />
<link rel='start' href='../index.html' title='Python Documentation Index' />
<link rel="first" href="lib.html" title='Python Library Reference' />
<link rel='contents' href='contents.html' title="Contents" />
<link rel='index' href='genindex.html' title='Index' />
<link rel='last' href='about.html' title='About this document...' />
<link rel='help' href='about.html' title='About this document...' />
<link rel="next" href="python.html" />
<link rel="prev" href="intro.html" />
<link rel="parent" href="lib.html" />
<link rel="next" href="built-in-funcs.html" />
<meta name='aesop' content='information' />
<title>2. Built-In Objects </title>
</head>
<body>
<DIV CLASS="navigation">
<div id='top-navigation-panel' xml:id='top-navigation-panel'>
<table align="center" width="100%" cellpadding="0" cellspacing="2">
<tr>
<td class='online-navigation'><a rel="prev" title="1. Introduction"
href="intro.html"><img src='../icons/previous.png'
border='0' height='32' alt='Previous Page' width='32' /></A></td>
<td class='online-navigation'><a rel="parent" title="Python Library Reference"
href="lib.html"><img src='../icons/up.png'
border='0' height='32' alt='Up One Level' width='32' /></A></td>
<td class='online-navigation'><a rel="next" title="2.1 Built-in Functions"
href="built-in-funcs.html"><img src='../icons/next.png'
border='0' height='32' alt='Next Page' width='32' /></A></td>
<td align="center" width="100%">Python Library Reference</td>
<td class='online-navigation'><a rel="contents" title="Table of Contents"
href="contents.html"><img src='../icons/contents.png'
border='0' height='32' alt='Contents' width='32' /></A></td>
<td class='online-navigation'><a href="modindex.html" title="Module Index"><img src='../icons/modules.png'
border='0' height='32' alt='Module Index' width='32' /></a></td>
<td class='online-navigation'><a rel="index" title="Index"
href="genindex.html"><img src='../icons/index.png'
border='0' height='32' alt='Index' width='32' /></A></td>
</tr></table>
<div class='online-navigation'>
<b class="navlabel">Previous:</b>
<a class="sectref" rel="prev" href="intro.html">1. Introduction</A>
<b class="navlabel">Up:</b>
<a class="sectref" rel="parent" href="lib.html">Python Library Reference</A>
<b class="navlabel">Next:</b>
<a class="sectref" rel="next" href="built-in-funcs.html">2.1 Built-in Functions</A>
</div>
<hr /></div>
</DIV>
<!--End of Navigation Panel-->
<H1><A NAME="SECTION004000000000000000000"></A><A NAME="builtin"></A>
<BR>
2. Built-In Objects
</H1>
<P>
Names for built-in exceptions and functions and a number of constants are
found in a separate
symbol table. This table is searched last when the interpreter looks
up the meaning of a name, so local and global
user-defined names can override built-in names. Built-in types are
described together here for easy reference.<A NAME="tex2html1"
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>
<P>
The tables in this chapter document the priorities of operators by
listing them in order of ascending priority (within a table) and
grouping operators that have the same priority in the same box.
Binary operators of the same priority group from left to right.
(Unary operators group from right to left, but there you have no real
choice.) See chapter 5 of the <em class="citetitle"><a
href="../ref/ref.html"
title="Python
Reference Manual"
>Python
Reference Manual</a></em> for the complete picture on operator priorities.
<BR><HR><H4>Footnotes</H4>
<DL>
<DT><A NAME="foot93">... reference.</A><A
href="builtin.html#tex2html1"><SUP>2.1</SUP></A></DT>
<DD>
Most descriptions sorely lack explanations of the exceptions
that may be raised -- this will be fixed in a future version of
this manual.
</DD>
</DL>
<p><br /></p><hr class='online-navigation' />
<div class='online-navigation'>
<!--Table of Child-Links-->
<A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></a>
<UL CLASS="ChildLinks">
<LI><A href="built-in-funcs.html">2.1 Built-in Functions</a>
<LI><A href="non-essential-built-in-funcs.html">2.2 Non-essential Built-in Functions</a>
<LI><A href="types.html">2.3 Built-in Types</a>
<UL>
<LI><A href="truth.html">2.3.1 Truth Value Testing</a>
<LI><A href="boolean.html">2.3.2 Boolean Operations --
<tt class="keyword">and</tt>, <tt class="keyword">or</tt>, <tt class="keyword">not</tt></a>
<LI><A href="comparisons.html">2.3.3 Comparisons</a>
<LI><A href="typesnumeric.html">2.3.4 Numeric Types --
<tt class="class">int</tt>, <tt class="class">float</tt>, <tt class="class">long</tt>, <tt class="class">complex</tt></a>
<UL>
<LI><A href="bitstring-ops.html">2.3.4.1 Bit-string Operations on Integer Types</a>
</ul>
<LI><A href="typeiter.html">2.3.5 Iterator Types</a>
<LI><A href="typesseq.html">2.3.6 Sequence Types --
<tt class="class">str</tt>, <tt class="class">unicode</tt>, <tt class="class">list</tt>,
<tt class="class">tuple</tt>, <tt class="class">buffer</tt>, <tt class="class">xrange</tt></a>
<UL>
<LI><A href="string-methods.html">2.3.6.1 String Methods</a>
<LI><A href="typesseq-strings.html">2.3.6.2 String Formatting Operations</a>
<LI><A href="typesseq-xrange.html">2.3.6.3 XRange Type</a>
<LI><A href="typesseq-mutable.html">2.3.6.4 Mutable Sequence Types</a>
</ul>
<LI><A href="types-set.html">2.3.7 Set Types --
<tt class="class">set</tt>, <tt class="class">frozenset</tt></a>
<LI><A href="typesmapping.html">2.3.8 Mapping Types -- classdict</a>
<LI><A href="bltin-file-objects.html">2.3.9 File Objects</a>
<LI><A href="typesother.html">2.3.10 Other Built-in Types</a>
<UL>
<LI><A href="typesmodules.html">2.3.10.1 Modules</a>
<LI><A href="typesobjects.html">2.3.10.2 Classes and Class Instances</a>
<LI><A href="typesfunctions.html">2.3.10.3 Functions</a>
<LI><A href="typesmethods.html">2.3.10.4 Methods</a>
<LI><A href="bltin-code-objects.html">2.3.10.5 Code Objects</a>
<LI><A href="bltin-type-objects.html">2.3.10.6 Type Objects</a>
<LI><A href="bltin-null-object.html">2.3.10.7 The Null Object</a>
<LI><A href="bltin-ellipsis-object.html">2.3.10.8 The Ellipsis Object</a>
<LI><A href="node31.html">2.3.10.9 Boolean Values</a>
<LI><A href="typesinternal.html">2.3.10.10 Internal Objects</a>
</ul>
<LI><A href="specialattrs.html">2.3.11 Special Attributes</a>
</ul>
<LI><A href="module-exceptions.html">2.4 Built-in Exceptions</a>
<LI><A href="node35.html">2.5 Built-in Constants</a>
</ul>
<!--End of Table of Child-Links-->
</div>
<DIV CLASS="navigation">
<div class='online-navigation'>
<p></p><hr />
<table align="center" width="100%" cellpadding="0" cellspacing="2">
<tr>
<td class='online-navigation'><a rel="prev" title="1. Introduction"
href="intro.html"><img src='../icons/previous.png'
border='0' height='32' alt='Previous Page' width='32' /></A></td>
<td class='online-navigation'><a rel="parent" title="Python Library Reference"
href="lib.html"><img src='../icons/up.png'
border='0' height='32' alt='Up One Level' width='32' /></A></td>
<td class='online-navigation'><a rel="next" title="2.1 Built-in Functions"
href="built-in-funcs.html"><img src='../icons/next.png'
border='0' height='32' alt='Next Page' width='32' /></A></td>
<td align="center" width="100%">Python Library Reference</td>
<td class='online-navigation'><a rel="contents" title="Table of Contents"
href="contents.html"><img src='../icons/contents.png'
border='0' height='32' alt='Contents' width='32' /></A></td>
<td class='online-navigation'><a href="modindex.html" title="Module Index"><img src='../icons/modules.png'
border='0' height='32' alt='Module Index' width='32' /></a></td>
<td class='online-navigation'><a rel="index" title="Index"
href="genindex.html"><img src='../icons/index.png'
border='0' height='32' alt='Index' width='32' /></A></td>
</tr></table>
<div class='online-navigation'>
<b class="navlabel">Previous:</b>
<a class="sectref" rel="prev" href="intro.html">1. Introduction</A>
<b class="navlabel">Up:</b>
<a class="sectref" rel="parent" href="lib.html">Python Library Reference</A>
<b class="navlabel">Next:</b>
<a class="sectref" rel="next" href="built-in-funcs.html">2.1 Built-in Functions</A>
</div>
</div>
<hr />
<span class="release-info">Release 2.4.2, documentation updated on 28 September 2005.</span>
</DIV>
<!--End of Navigation Panel-->
<ADDRESS>
See <i><a href="about.html">About this document...</a></i> for information on suggesting changes.
</ADDRESS>
</BODY>
</HTML>