consistent capitalization

This commit is contained in:
Mark Pilgrim
2009-09-18 08:07:08 -04:00
parent 973852d8b0
commit 81abf54c93
22 changed files with 31 additions and 31 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<meta charset=utf-8>
<title>Advanced Iterators - Dive into Python 3</title>
<title>Advanced Iterators - Dive Into Python 3</title>
<!--[if IE]><script src=j/html5.js></script><![endif]-->
<link rel=stylesheet href=dip3.css>
<style>
+1 -1
View File
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<meta charset=utf-8>
<title>Case study: porting chardet to Python 3 - Dive into Python 3</title>
<title>Case study: porting chardet to Python 3 - Dive Into Python 3</title>
<!--[if IE]><script src=j/html5.js></script><![endif]-->
<link rel=stylesheet href=dip3.css>
<style>
+1 -1
View File
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<meta charset=utf-8>
<meta name=robots content=noindex>
<title>Colophon - Dive into Python 3</title>
<title>Colophon - Dive Into Python 3</title>
<link rel=stylesheet href=dip3.css>
<style>
h1:before,h2:before{content:''}
+1 -1
View File
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<meta charset=utf-8>
<title>Comprehensions - Dive into Python 3</title>
<title>Comprehensions - Dive Into Python 3</title>
<!--[if IE]><script src=j/html5.js></script><![endif]-->
<link rel=stylesheet href=dip3.css>
<style>
+1 -1
View File
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<meta charset=utf-8>
<title>Files - Dive into Python 3</title>
<title>Files - Dive Into Python 3</title>
<!--[if IE]><script src=j/html5.js></script><![endif]-->
<link rel=stylesheet href=dip3.css>
<style>
+1 -1
View File
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<meta charset=utf-8>
<title>Closures &amp; Generators - Dive into Python 3</title>
<title>Closures &amp; Generators - Dive Into Python 3</title>
<!--[if IE]><script src=j/html5.js></script><![endif]-->
<link rel=stylesheet href=dip3.css>
<style>
+1 -1
View File
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<meta charset=utf-8>
<title>HTTP Web Services - Dive into Python 3</title>
<title>HTTP Web Services - Dive Into Python 3</title>
<!--[if IE]><script src=j/html5.js></script><![endif]-->
<link rel=stylesheet href=dip3.css>
<style>
+2 -2
View File
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<meta charset=utf-8>
<title>Installing Python - Dive into Python 3</title>
<title>Installing Python - Dive Into Python 3</title>
<!--[if IE]><script src=j/html5.js></script><![endif]-->
<link rel=stylesheet href=dip3.css>
<style>
@@ -20,7 +20,7 @@ h2,.i>li{clear:both}
<p><span class=u>&#x275D;</span> <i lang=la>Tempora mutantur nos et mutamur in illis.</i> (Times change, and we change with them.) <span class=u>&#x275E;</span><br>&mdash; ancient Roman proverb
</blockquote>
<p id=toc>&nbsp;
<h2 id=divingin>Diving in</h2>
<h2 id=divingin>Diving In</h2>
<p class=f>Welcome to Python 3. Let's dive in. In this chapter, you'll install the version of Python 3 that's right for you.
<h2 id=which>Which Python Is Right For You?</h2>
+1 -1
View File
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<meta charset=utf-8>
<title>Classes &amp; Iterators - Dive into Python 3</title>
<title>Classes &amp; Iterators - Dive Into Python 3</title>
<!--[if IE]><script src=j/html5.js></script><![endif]-->
<link rel=stylesheet href=dip3.css>
<style>
+1 -1
View File
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<meta charset=utf-8>
<title>Native datatypes - Dive into Python 3</title>
<title>Native datatypes - Dive Into Python 3</title>
<!--[if IE]><script src=j/html5.js></script><![endif]-->
<link rel=stylesheet href=dip3.css>
<style>
+1 -1
View File
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<meta charset=utf-8>
<title>Packaging Python Libraries - Dive into Python 3</title>
<title>Packaging Python Libraries - Dive Into Python 3</title>
<!--[if IE]><script src=j/html5.js></script><![endif]-->
<link rel=stylesheet href=dip3.css>
<style>
+2 -2
View File
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<meta charset=utf-8>
<title>Porting code to Python 3 with 2to3 - Dive into Python 3</title>
<title>Porting code to Python 3 with 2to3 - Dive Into Python 3</title>
<!--[if IE]><script src=j/html5.js></script><![endif]-->
<link rel=stylesheet href=dip3.css>
<style>
@@ -22,7 +22,7 @@ h3:before{counter-increment:h3;content:'A.' counter(h2) '.' counter(h3) '. '}
<p id=toc>&nbsp;
<h2 id=divingin>Diving in</h2>
<h2 id=divingin>Diving In</h2>
<p class=f>Virtually all Python 2 programs will need at least some tweaking to run properly under Python 3. To help with this transition, Python 3 comes with a utility script called <code>2to3</code>, which takes your actual Python 2 source code as input and auto-converts as much as it can to Python 3. <a href=case-study-porting-chardet-to-python-3.html#running2to3>Case study: porting <code>chardet</code> to Python 3</a> describes how to run the <code>2to3</code> script, then shows some things it can&#8217;t fix automatically. This appendix documents what it <em>can</em> fix automatically.
+1 -1
View File
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<meta charset=utf-8>
<title>Refactoring - Dive into Python 3</title>
<title>Refactoring - Dive Into Python 3</title>
<!--[if IE]><script src=j/html5.js></script><![endif]-->
<link rel=stylesheet href=dip3.css>
<style>
+1 -1
View File
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<meta charset=utf-8>
<title>Regular expressions - Dive into Python 3</title>
<title>Regular expressions - Dive Into Python 3</title>
<!--[if IE]><script src=j/html5.js></script><![endif]-->
<link rel=stylesheet href=dip3.css>
<style>
+1 -1
View File
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<meta charset=utf-8>
<title>Serializing Python Objects - Dive into Python 3</title>
<title>Serializing Python Objects - Dive Into Python 3</title>
<!--[if IE]><script src=j/html5.js></script><![endif]-->
<link rel=stylesheet href=dip3.css>
<style>
+2 -2
View File
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<meta charset=utf-8>
<title>Special Method Names - Dive into Python 3</title>
<title>Special Method Names - Dive Into Python 3</title>
<!--[if IE]><script src=j/html5.js></script><![endif]-->
<link rel=stylesheet href=dip3.css>
<style>
@@ -19,7 +19,7 @@ h3:before{counter-increment:h3;content:'B.' counter(h2) '.' counter(h3) '. '}
<p><span class=u>&#x275D;</span> My specialty is being right when other people are wrong. <span class=u>&#x275E;</span><br>&mdash; <a href=http://en.wikiquote.org/wiki/George_Bernard_Shaw>George Bernard Shaw</a>
</blockquote>
<p id=toc>&nbsp;
<h2 id=divingin>Diving in</h2>
<h2 id=divingin>Diving In</h2>
<p class=f>We&#8217;ve already covered a few special method names elsewhere in this book&nbsp;&mdash;&nbsp;&#8220;magic&#8221; methods that Python invokes when you use certain syntax. Using special methods, your classes can act like sequences, like dictionaries, like functions, like iterators, or even like numbers! This appendix serves both as a reference for the special methods we&#8217;ve seen already and a brief introduction to some of the more esoteric ones.
<h2 id=basics>Basics</h2>
+1 -1
View File
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<meta charset=utf-8>
<title>Strings - Dive into Python 3</title>
<title>Strings - Dive Into Python 3</title>
<!--[if IE]><script src=j/html5.js></script><![endif]-->
<link rel=stylesheet href=dip3.css>
<style>
+7 -7
View File
@@ -30,7 +30,7 @@ ul li ol{margin:0;padding:0 0 0 2.5em}
</ol>
<li id=your-first-python-program><a href=your-first-python-program.html>Your first Python program</a>
<ol>
<li><a href=your-first-python-program.html#divingin>Diving in</a>
<li><a href=your-first-python-program.html#divingin>Diving In</a>
<li><a href=your-first-python-program.html#declaringfunctions>Declaring functions</a>
<li><a href=your-first-python-program.html#readability>Writing readable code</a>
<ol>
@@ -48,7 +48,7 @@ ul li ol{margin:0;padding:0 0 0 2.5em}
</ol>
<li id=native-python-datatypes><a href=native-datatypes.html>Native Python datatypes</a>
<ol>
<li><a href=native-datatypes.html#divingin>Diving in</a>
<li><a href=native-datatypes.html#divingin>Diving In</a>
<li><a href=native-datatypes.html#booleans>Booleans</a>
<li><a href=native-datatypes.html#numbers>Numbers</a>
<ol>
@@ -130,7 +130,7 @@ ul li ol{margin:0;padding:0 0 0 2.5em}
</ol>
<li id=regular-expressions><a href=regular-expressions.html>Regular expressions</a>
<ol>
<li><a href=regular-expressions.html#divingin>Diving in</a>
<li><a href=regular-expressions.html#divingin>Diving In</a>
<li><a href=regular-expressions.html#streetaddresses>Case study: street addresses</a>
<li><a href=regular-expressions.html#romannumerals>Case study: Roman numerals</a>
<ol>
@@ -147,7 +147,7 @@ ul li ol{margin:0;padding:0 0 0 2.5em}
</ol>
<li id=generators><a href=generators.html>Closures <i class=baa>&amp;</i> Generators</a>
<ol>
<li><a href=generators.html#divingin>Diving in</a>
<li><a href=generators.html#divingin>Diving In</a>
<li><a href=generators.html#i-know>I know, let&#8217;s use regular expressions!</a>
<li><a href=generators.html#a-list-of-functions>A list of functions</a>
<li><a href=generators.html#a-list-of-patterns>A list of patterns</a>
@@ -194,7 +194,7 @@ ul li ol{margin:0;padding:0 0 0 2.5em}
</ol>
<li><a href=refactoring.html>Refactoring</a>
<ol>
<li><a href=refactoring.html#divingin>Diving in</a>
<li><a href=refactoring.html#divingin>Diving In</a>
<li><a href=refactoring.html#changing-requirements>Handling Changing Requirements</a>
<li><a href=refactoring.html#refactoring>Refactoring</a>
<li><a href=refactoring.html#summary>Summary</a>
@@ -342,7 +342,7 @@ ul li ol{margin:0;padding:0 0 0 2.5em}
</ol>
<li id=porting-code-to-python-3-with-2to3><a href=porting-code-to-python-3-with-2to3.html>Appendix A. Porting code to Python 3 with <code>2to3</code></a>
<ol>
<li><a href=porting-code-to-python-3-with-2to3.html#divingin>Diving in</a>
<li><a href=porting-code-to-python-3-with-2to3.html#divingin>Diving In</a>
<li><a href=porting-code-to-python-3-with-2to3.html#print><code>print</code> statement</a>
<li><a href=porting-code-to-python-3-with-2to3.html#unicodeliteral>Unicode string literals</a>
<li><a href=porting-code-to-python-3-with-2to3.html#unicode><code>unicode()</code> global function</a>
@@ -401,7 +401,7 @@ ul li ol{margin:0;padding:0 0 0 2.5em}
</ol>
<li id=special-method-names><a href=special-method-names.html>Appendix B. Special Method Names</a>
<ol>
<li><a href=special-method-names.html#divingin>Diving in</a>
<li><a href=special-method-names.html#divingin>Diving In</a>
<li><a href=special-method-names.html#basics>Basics</a>
<li><a href=special-method-names.html#acts-like-iterator>Classes That Act Like Iterators</a>
<li><a href=special-method-names.html#computed-attributes>Computed Attributes</a>
+1 -1
View File
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<meta charset=utf-8>
<title>Unit testing - Dive into Python 3</title>
<title>Unit testing - Dive Into Python 3</title>
<!--[if IE]><script src=j/html5.js></script><![endif]-->
<link rel=stylesheet href=dip3.css>
<style>
+1 -1
View File
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<meta charset=utf-8>
<title>Where to Go From Here - Dive into Python 3</title>
<title>Where to Go From Here - Dive Into Python 3</title>
<!--[if IE]><script src=j/html5.js></script><![endif]-->
<link rel=stylesheet href=dip3.css>
<style>
+1 -1
View File
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<meta charset=utf-8>
<title>XML - Dive into Python 3</title>
<title>XML - Dive Into Python 3</title>
<!--[if IE]><script src=j/html5.js></script><![endif]-->
<link rel=stylesheet href=dip3.css>
<style>
+1 -1
View File
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<meta charset=utf-8>
<title>Your first Python program - Dive into Python 3</title>
<title>Your first Python program - Dive Into Python 3</title>
<!--[if IE]><script src=j/html5.js></script><![endif]-->
<link rel=stylesheet href=dip3.css>
<style>