diff --git a/dip3.css b/dip3.css index c5bc3ed..66b3f39 100644 --- a/dip3.css +++ b/dip3.css @@ -16,6 +16,7 @@ cite{font-style:normal} img{border:0} .framed{border:1px solid} pre,blockquote{line-height:2.154;margin:2.154em 0;padding:0 0 0 2.154em;border-left:1px dotted} +td pre{margin:0;padding:0;border:0} blockquote{font-size:small;font-style:oblique;margin-left:2.154em} blockquote p{margin:2.154em 0} .c{text-align:center;clear:both;font-size:small} @@ -33,10 +34,11 @@ th{text-align:left;padding:0 0.5em;vertical-align:baseline;border:1px dotted} th,td{width:45%;vertical-align:top} th:first-child{width:10%;text-align:center} .callout,tr + tr th:first-child{font-family:'Arial Unicode MS','Gill Sans','Gill Sans MT','Ikarius ADF',Candara,Jara,sans-serif} -td{border:1px dotted black;padding:0 0.5em} +td{border:1px dotted;padding:0 0.5em} body{counter-reset:h1} h1:before{counter-increment:h1;content:counter(h1) ". "} h1{counter-reset:h2} h2:before{counter-increment:h2;content:counter(h1) "." counter(h2) ". "} h2{counter-reset:h3} h3:before{counter-increment:h3;content:counter(h1) "." counter(h2) "." counter(h3) ". "} +tr.hover,li.hover{background-color:#efefef;color:inherit} \ No newline at end of file diff --git a/porting-code-to-python-3-with-2to3.html b/porting-code-to-python-3-with-2to3.html index 89187c4..a250ee6 100644 --- a/porting-code-to-python-3-with-2to3.html +++ b/porting-code-to-python-3-with-2to3.html @@ -7,6 +7,39 @@ +

Porting code to Python 3 with 2to3

@@ -28,8 +61,7 @@ body{counter-reset:h1 18}
  • throw statement
  • long data type
  • xrange() global function
  • -
  • raw_input() global function
  • -
  • input() global method
  • +
  • raw_input() and input() global functions
  • func_* function attributes
  • xreadlines() I/O method
  • imports
  • @@ -85,7 +117,6 @@ body{counter-reset:h1 18} print() - ② print 1 print(1) @@ -107,7 +138,13 @@ body{counter-reset:h1 18} -

    ...

    +
      +
    1. ...
    2. +
    3. ...
    4. +
    5. ...
    6. +
    7. ...
    8. +
    9. ...
    10. +
    @@ -117,7 +154,7 @@ body{counter-reset:h1 18}

    FIXME intro

    - +
    @@ -135,7 +172,10 @@ body{counter-reset:h1 18}
    Notes Python 2
    -

    ...

    +
      +
    1. ...
    2. +
    3. ...
    4. +
    @@ -178,7 +218,13 @@ body{counter-reset:h1 18} -

    ...

    +
      +
    1. ...
    2. +
    3. ...
    4. +
    5. ...
    6. +
    7. ...
    8. +
    9. ...
    10. +
    @@ -217,11 +263,17 @@ body{counter-reset:h1 18} ⑤ min(aDictionary.keys()) -no change +no change -

    ...

    +
      +
    1. ...
    2. +
    3. ...
    4. +
    5. ...
    6. +
    7. ...
    8. +
    9. ...
    10. +