This commit is contained in:
Mark Pilgrim
2009-05-21 21:44:11 -04:00
parent 249cc5dde8
commit e8b827f2ed
-3
View File
@@ -12,7 +12,6 @@ h3:before{content:""}
</head>
<form action=http://www.google.com/cse><div><input type=hidden name=cx value=014021643941856155761:l5eihuescdw><input type=hidden name=ie value=UTF-8>&nbsp;<input name=q size=25>&nbsp;<input type=submit name=sa value=Search></div></form>
<p>You are here: <a href=index.html>Home</a> <span>&#8227;</span> <a href=table-of-contents.html#whats-new>Dive Into Python 3</a> <span>&#8227;</span>
<p id=level>Difficulty level: <span title=advanced>&#x2666;&#x2666;&#x2666;&#x2666;&#x2662;</span>
<h1>What&#8217;s New In &#8220;Dive Into Python 3&#8221;</h1>
<blockquote class=q>
<p><span>&#x275D;</span> Isn&#8217;t this where we came in? <span>&#x275E;</span><br>&mdash; Pink Floyd, The Wall
@@ -20,8 +19,6 @@ h3:before{content:""}
<p id=toc>&nbsp;
<h2 id=divingin><i>a.k.a.</i> &#8220;the minus level&#8221;</h2>
<h3 id=divingin2><i>a.k.a.</i> I don&#8217;t want to read any more of this damn book than I absolutely have to</h3>
<p class=f>You read the original &#8220;<a href=http://diveintopython.org/>Dive Into Python</a>&#8221; and maybe even bought it on paper. (Thanks!) You already know Python 2 pretty well. You&#8217;re ready to take the plunge into Python 3. &hellip; If all of that is true, read on. (If none of that is true, you&#8217;d be better off <a href=your-first-python-program.html>starting at the beginning</a>.)
<p>Python 3 comes with a script called <code>2to3</code>. Learn it. Love it. Use it. <a href=porting-code-to-python-3-with-2to3.html>Porting Code to Python 3 with <code>2to3</code></a> is a reference of all the things that the <code>2to3</code> tool can fix automatically. Since a lot of those things are syntax changes, it&#8217;s a good starting point to learn about a lot of the syntax changes in Python 3. (<code>print</code> is now a function, <code>`x`</code> doesn&#8217;t work, <i class=baa>&amp;</i>c.)