<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!--Converted with LaTeX2HTML 98.2 beta6 (August 14th, 1998)
original version by:  Nikos Drakos, CBLU, University of Leeds
* revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
  Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>2.1 Built-in Types </TITLE>
<META NAME="description" CONTENT="2.1 Built-in Types ">
<META NAME="keywords" CONTENT="lib">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<LINK REL="STYLESHEET" HREF="lib.css">
<LINK REL="next" HREF="module-exceptions.html">
<LINK REL="previous" HREF="builtin.html">
<LINK REL="up" HREF="builtin.html">
<LINK REL="next" HREF="truth.html">
</HEAD>
<BODY bgcolor="#ffffff">
<div class=navigation>
<table align=center width="100%" cellpadding=0 cellspacing=2>
<tr>
<td><A HREF="truth.html"><img width=32 height=32 align=bottom border=0 alt="next"
 src="../icons/next.gif"></A></td>
<td><A HREF="builtin.html"><img width=32 height=32 align=bottom border=0 alt="up"
 src="../icons/up.gif"></A></td>
<td><A HREF="builtin.html"><img width=32 height=32 align=bottom border=0 alt="previous"
 src="../icons/previous.gif"></A></td>
<td align=center bgcolor="#99CCFF" width="100%">
 <b class=title>Python Library Reference</b></td>
<td><A HREF="contents.html"><img width=32 height=32 align=bottom border=0 alt="contents"
 src="../icons/contents.gif"></A></td>
<td><a
 href="modindex.html"><img width=32 height=32 align=bottom border=0 alt="modules"
 src="../icons/modules.gif"></a></td>
<td><A HREF="genindex.html"><img width=32 height=32 align=bottom border=0 alt="index"
 src="../icons/index.gif"></A></td>
</tr></table><b class=navlabel>Next:</b> <span class=sectref><A HREF="truth.html">2.1.1 Truth Value Testing</A></span>
<b class=navlabel>Up:</b> <span class=sectref><A HREF="builtin.html">2. Built-in Types, Exceptions</A></span>
<b class=navlabel>Previous:</b> <span class=sectref><A HREF="builtin.html">2. Built-in Types, Exceptions</A></span>
<br><hr></div>
<!--End of Navigation Panel-->

<H1><A NAME="SECTION004100000000000000000"></A>
<BR>
2.1 Built-in Types 
</H1>

<P>
The following sections describe the standard types that are built into
the interpreter.  These are the numeric types, sequence types, and
several others, including types themselves.  There is no explicit
Boolean type; use integers instead.
<a name="l2h-5"></a>
<a name="l2h-6"></a>

<P>
Some operations are supported by several object types; in particular,
all objects can be compared, tested for truth value, and converted to
a string (with the <tt>` ...`</tt> notation).  The latter
conversion is implicitly used when an object is written by the
<tt class=keyword>print</tt><a name="l2h-7"></a> statement.

<P>

<p><hr>
<!--Table of Child-Links-->


<UL>
<LI><A NAME="tex2html619"
 HREF="truth.html">2.1.1 Truth Value Testing </A>
<LI><A NAME="tex2html620"
 HREF="boolean.html">2.1.2 Boolean Operations </A>
<LI><A NAME="tex2html621"
 HREF="comparisons.html">2.1.3 Comparisons </A>
<LI><A NAME="tex2html622"
 HREF="typesnumeric.html">2.1.4 Numeric Types </A>
<UL>
<LI><A NAME="tex2html623"
 HREF="bitstring-ops.html">2.1.4.1 Bit-string Operations on Integer Types </A>
</UL>
<LI><A NAME="tex2html624"
 HREF="typesseq.html">2.1.5 Sequence Types </A>
<UL>
<LI><A NAME="tex2html625"
 HREF="typesseq-strings.html">2.1.5.1 More String Operations </A>
<LI><A NAME="tex2html626"
 HREF="typesseq-mutable.html">2.1.5.2 Mutable Sequence Types </A>
</UL>
<LI><A NAME="tex2html627"
 HREF="typesmapping.html">2.1.6 Mapping Types </A>
<LI><A NAME="tex2html628"
 HREF="typesother.html">2.1.7 Other Built-in Types </A>
<UL>
<LI><A NAME="tex2html629"
 HREF="typesmodules.html">2.1.7.1 Modules </A>
<LI><A NAME="tex2html630"
 HREF="typesobjects.html">2.1.7.2 Classes and Class Instances </A>
<LI><A NAME="tex2html631"
 HREF="typesfunctions.html">2.1.7.3 Functions </A>
<LI><A NAME="tex2html632"
 HREF="typesmethods.html">2.1.7.4 Methods </A>
<LI><A NAME="tex2html633"
 HREF="bltin-code-objects.html">2.1.7.5 Code Objects </A>
<LI><A NAME="tex2html634"
 HREF="bltin-type-objects.html">2.1.7.6 Type Objects </A>
<LI><A NAME="tex2html635"
 HREF="bltin-null-object.html">2.1.7.7 The Null Object </A>
<LI><A NAME="tex2html636"
 HREF="bltin-ellipsis-object.html">2.1.7.8 The Ellipsis Object </A>
<LI><A NAME="tex2html637"
 HREF="bltin-file-objects.html">2.1.7.9 File Objects<a name="l2h-127"></a>
               </A>
<LI><A NAME="tex2html638"
 HREF="typesinternal.html">2.1.7.10 Internal Objects </A>
</UL>
<LI><A NAME="tex2html639"
 HREF="specialattrs.html">2.1.8 Special Attributes </A>
</UL>
<!--End of Table of Child-Links-->
<p>
<div class=navigation><hr><table align=center width="100%" cellpadding=0 cellspacing=2>
<tr>
<td><A HREF="truth.html"><img width=32 height=32 align=bottom border=0 alt="next"
 src="../icons/next.gif"></A></td>
<td><A HREF="builtin.html"><img width=32 height=32 align=bottom border=0 alt="up"
 src="../icons/up.gif"></A></td>
<td><A HREF="builtin.html"><img width=32 height=32 align=bottom border=0 alt="previous"
 src="../icons/previous.gif"></A></td>
<td align=center bgcolor="#99CCFF" width="100%">
 <b class=title>Python Library Reference</b></td>
<td><A HREF="contents.html"><img width=32 height=32 align=bottom border=0 alt="contents"
 src="../icons/contents.gif"></A></td>
<td><a
 href="modindex.html"><img width=32 height=32 align=bottom border=0 alt="modules"
 src="../icons/modules.gif"></a></td>
<td><A HREF="genindex.html"><img width=32 height=32 align=bottom border=0 alt="index"
 src="../icons/index.gif"></A></td>
</tr></table><b class=navlabel>Next:</b> <span class=sectref><A HREF="truth.html">2.1.1 Truth Value Testing</A></span>
<b class=navlabel>Up:</b> <span class=sectref><A HREF="builtin.html">2. Built-in Types, Exceptions</A></span>
<b class=navlabel>Previous:</b> <span class=sectref><A HREF="builtin.html">2. Built-in Types, Exceptions</A></span>
</div>
<!--End of Navigation Panel-->
<ADDRESS>
<hr>Send comments on this document to <a href="mailto:python-docs@python.org">python-docs@python.org</a>.
</ADDRESS>
</BODY>
</HTML>
