Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…


Cannot retrieve contributors at this time

file 63 lines (52 sloc) 4.518 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
<!DOCTYPE html>
<meta charset=utf-8>
<title>Dive Into Python 3</title>
<link rel=alternate type=application/atom+xml href=>
<link rel=stylesheet href=dip3.css>
#a,#b,#c,#d{list-style:none;margin:0 0 0 -1.7em}
#a:before{content:'A. \00a0 \00a0'}
#b:before{content:'B. \00a0 \00a0'}
#c:before{content:'C. \00a0 \00a0'}
#d:before{content:'D. \00a0 \00a0'}
<link rel=stylesheet media='only screen and (max-device-width: 480px)' href=mobile.css>
<link rel=stylesheet media=print href=print.css>
<meta name=viewport content='initial-scale=1.0'>
<form action=><div><input type=hidden name=cx value=014021643941856155761:l5eihuescdw><input type=hidden name=ie value=UTF-8><input type=search name=q size=25 placeholder="powered by Google&trade;">&nbsp;<input type=submit name=sa value=Search></div></form>

<p>You are here:&nbsp;&nbsp;<span title="Ce n'est pas un point" style='cursor:default'>&bull;</span>

<h1>Dive Into Python 3</h1>

<p><cite>Dive Into Python 3</cite> covers Python 3 and its differences from Python 2. Compared to <cite><a href=>Dive Into Python</a></cite>, it&#8217;s about 20% revised and 80% new material. The book is now complete, but <a href=about.html>feedback is always welcome</a>.

<h2>Table of Contents (<a href=table-of-contents.html>expand</a>)</h2>

<p style="float:right;width:245px;text-align:center;margin:0 0 0 1.75em"><a style="border:0" href=";tag=diveintomark-20&amp;creativeASIN=1430224150" title="Affiliate link = I earn an extra buck"><em>Also available on dead trees!</em><br><img src="i/cover.jpg" alt="Dive Into Python 3" width=245 height=300></a>

<!-- toc -->
<ol start=-1>
<li><a href=whats-new.html>What&#8217;s New in &#8220;Dive Into Python 3&#8221;</a>
<li><a href=installing-python.html>Installing Python</a>
<li><a href=your-first-python-program.html>Your First Python Program</a>
<li><a href=native-datatypes.html>Native Datatypes</a>
<li><a href=comprehensions.html>Comprehensions</a>
<li><a href=strings.html>Strings</a>
<li><a href=regular-expressions.html>Regular Expressions</a>
<li><a href=generators.html>Closures <i class=baa>&amp;</i> Generators</a>
<li><a href=iterators.html>Classes <i class=baa>&amp;</i> Iterators</a>
<li><a href=advanced-iterators.html>Advanced Iterators</a>
<li><a href=unit-testing.html>Unit Testing</a>
<li><a href=refactoring.html>Refactoring</a>
<li><a href=files.html>Files</a>
<li><a href=xml.html>XML</a>
<li><a href=serializing.html>Serializing Python Objects</a>
<li><a href=http-web-services.html>HTTP Web Services</a>
<li><a href=case-study-porting-chardet-to-python-3.html>Case Study: Porting <code>chardet</code> to Python 3</a>
<li><a href=packaging.html>Packaging Python Libraries</a>
<li id=a><a href=porting-code-to-python-3-with-2to3.html>Porting Code to Python 3 with <code>2to3</code></a>
<li id=b><a href=special-method-names.html>Special Method Names</a>
<li id=c><a href=where-to-go-from-here.html>Where to Go From Here</a>
<li id=d><a href=troubleshooting.html>Troubleshooting</a>
<!-- /toc -->

<p>The book is freely licensed under the <a rel=license href=>Creative Commons Attribution Share-Alike</a> license. You can download it as <a href=""><abbr>HTML</abbr></a> or <a href=""><abbr>PDF</abbr></a>. &Uuml;ber-geeks can also clone the Git repository:

<pre><samp class=p>you@localhost:~$ </samp><kbd>git clone <a href=>git://</a></kbd></pre>

<p class=c>&copy; 2001&ndash;11 <a href=about.html>Mark Pilgrim</a>

<p class=c>Translations: <a href= lang=es hreflang=es>en espa&ntilde;ol</a>, <a href= lang=it hreflang=it>in italiano</a>, <a href="" lang=ru hreflang=ru>на русском языке</a>, <a href= lang=fa hreflang=fa dir=rtl>به پارسی</a>, <a href="" lang="cs" hreflang="cs">česky</a>
Something went wrong with that request. Please try again.