diff --git a/dip3.css b/dip3.css index 338ea2c..15c2c6f 100644 --- a/dip3.css +++ b/dip3.css @@ -11,7 +11,7 @@ h1,h2,h3{font-size:medium} h1{background:papayawhip;color:#000;width:100%;margin:0} #index h2{margin-left:1.75em} #index h3{margin-left:3.5em} -pre,tt{white-space:pre-wrap;font-size:medium;line-height:2.154} +pre{white-space:pre-wrap;font-size:medium;line-height:2.154} cite{font-style:normal} img{border:0} .framed{border:1px solid} diff --git a/index.html b/index.html index 9203663..509e777 100644 --- a/index.html +++ b/index.html @@ -9,10 +9,8 @@ -

Dive into Python 3 will cover Python 3 and its differences from Python 2. Compared to the original Dive into Python, it will be about 50% revised and 50% new material.

-

I will publish drafts online as I go. The final book will be published on paper by Apress. The book will remain online under the CC-BY-3.0 license.

-

Below is the draft table of contents. There is no text yet.

-

Yes, that is PapayaWhip. All hail PapayaWhip.

+

Dive into Python 3 will cover Python 3 and its differences from Python 2. Compared to the original Dive into Python, it will be about 50% revised and 50% new material. I will publish drafts online as I go. The final book will be published on paper by Apress. The book will remain online under the CC-BY-3.0 license.

+

Below is the draft table of contents. Only a few chapters have been written so far. Yes, that is PapayaWhip. All hail PapayaWhip.

Installing Python

@@ -334,15 +332,6 @@
-
-

Scripts and streams

- -
-

...will be folded into other chapters...

-
- -
-

HTTP web services

@@ -403,15 +392,6 @@
-
-

SOAP web services

- -
-

...no one will miss you...

-
- -
-

Unit testing

@@ -491,15 +471,6 @@
-
-

Functional programming

- -
-

...bits and pieces will be folded into other chapters...

-
- -
-

Dynamic functions

@@ -580,38 +551,188 @@
-

Migrating old code to Python 3

+

Porting code to Python 3 with 2to3

-

Diving in

+

print statement

-

The 2to3 migration tool

+

<> comparison

-

Things the 2to3 tools won't catch

+

has_key() dictionary method

-

Case study: feedparser

-

Just shoot me

+

keys() dictionary method

-

Summary

+

items() dictionary method

+
+ +
+

apply() global function

+
+ +
+

intern() global function

+
+ +
+

exec statement

+
+ +
+

repr literals (backticks)

+
+ +
+

try...except statement

+
+ +
+

raise statement

+
+ +
+

throw statement

+
+ +
+

long data type

+
+ +
+

xrange() global function

+
+ +
+

raw_input() global function

+
+ +
+

input() global method

+
+ +
+

func_* function attributes

+
+ +
+

xreadlines() I/O method

+
+ +
+

imports

+
+ +
+

lambda functions with multiple parameters

+
+ +
+

__class__ special class attribute

+
+ +
+

next() iterator method

+
+ +
+

__nonzero__ special class attribute

+
+ +
+

Number literals

+
+ +
+

sys.maxint

+
+ +
+

unicode() global function

+
+ +
+

Unicode string literals

+
+ +
+

callable() global function

+
+ +
+

filter() global function

+
+ +
+

map() global function

+
+ +
+

zip() global function

+
+ +
+

StandardError() exception

+
+ +
+

types module constants

+
+ +
+

basestring datatype

+
+ +
+

itertools module

+
+ +
+

Relative imports

+
+ +
+

sys.exc_type, sys.exc_value, sys.exc_traceback

+
+ +
+

List comprehensions over tuples

+
+ +
+

os.getcwdu() function

+
+ +
+

Metaclasses

+
+ +
+

set() literals

+
+ +
+

buffer() global function

+
+ +
+

Whitespace around commas

+
+ +
+

Common idioms

-

Creating graphics with the Python Imaging Library

- -
-

...if it gets ported...

-
- +

Case study: porting chardet to Python 3

@@ -646,6 +767,15 @@
+
+

Creating graphics with the Python Imaging Library

+ +
+

...if it gets ported...

+
+ +
+

Where to go from here

Tentative because most of these have not been ported to Python 3 yet.

@@ -688,6 +818,33 @@
+
+

Scripts and streams

+ +
+

...will be folded into other chapters...

+
+ +
+ +
+

SOAP web services

+ +
+

...no one will miss you...

+
+ +
+ +
+

Functional programming

+ +
+

...bits and pieces will be folded into other chapters...

+
+ +
+