From 29e83fc58b0834b767281f82d195f17f5b0aeb4f Mon Sep 17 00:00:00 2001 From: Mark Pilgrim Date: Thu, 16 Apr 2009 00:30:24 -0400 Subject: [PATCH] consistent capitalization --- advanced-iterators.html | 2 +- iterators-and-generators.html | 2 +- native-datatypes.html | 2 +- porting-code-to-python-3-with-2to3.html | 2 +- regular-expressions.html | 2 +- strings.html | 2 +- your-first-python-program.html | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/advanced-iterators.html b/advanced-iterators.html index 40e07f2..8a13bc9 100644 --- a/advanced-iterators.html +++ b/advanced-iterators.html @@ -34,7 +34,7 @@ E = 1 S = 2 T = 0 -

This kind of puzzle is called cryptarithm or alphametics. The letters spell out actual words, but if you replace each letter with a digit from 0–9, it also “spells” an arithmetic equation. The trick is to figure out which letter maps to each digit. All the occurrences of each letter must map to the same digit, no digit can be repeated, and no “word” can start with the digit 0. +

Puzzles like this are called cryptarithms or alphametics. The letters spell out actual words, but if you replace each letter with a digit from 0–9, it also “spells” an arithmetic equation. The trick is to figure out which letter maps to each digit. All the occurrences of each letter must map to the same digit, no digit can be repeated, and no “word” can start with the digit 0.

The most well-known alphametic puzzle is SEND + MORE = MONEY. diff --git a/iterators-and-generators.html b/iterators-and-generators.html index db64674..fb855b4 100644 --- a/iterators-and-generators.html +++ b/iterators-and-generators.html @@ -570,7 +570,7 @@ rules = LazyRules()

  • PEP 255: Simple Generators -

    © 2001–9 Mark Pilgrim diff --git a/native-datatypes.html b/native-datatypes.html index 1cff987..b373e9d 100644 --- a/native-datatypes.html +++ b/native-datatypes.html @@ -453,7 +453,7 @@ KeyError: 'db.diveintopython3.org'

  • PEP 237: Unifying Long Integers and Integers
  • PEP 238: Changing the Division Operator -

    © 2001–9 Mark Pilgrim diff --git a/porting-code-to-python-3-with-2to3.html b/porting-code-to-python-3-with-2to3.html index 2ac9d02..cf75c36 100644 --- a/porting-code-to-python-3-with-2to3.html +++ b/porting-code-to-python-3-with-2to3.html @@ -1157,7 +1157,7 @@ do_stuff(a_list) do_stuff(a_list)

    FIXME: once the rest of the book is written, this appendix should contain copious links back to any chapter or section that touches on these features. -

    © 2001–9 Mark Pilgrim diff --git a/regular-expressions.html b/regular-expressions.html index 83d892e..181f669 100644 --- a/regular-expressions.html +++ b/regular-expressions.html @@ -417,7 +417,7 @@ body{counter-reset:h1 4}

  • (x) in general is a remembered group. You can get the value of what matched by using the groups() method of the object returned by re.search.

    Regular expressions are extremely powerful, but they are not the correct solution for every problem. You should learn enough about them to know when they are appropriate, when they will solve your problems, and when they will cause more problems than they solve. -

    © 2001–9 Mark Pilgrim diff --git a/strings.html b/strings.html index 2b7a4ee..bab41e6 100644 --- a/strings.html +++ b/strings.html @@ -420,7 +420,7 @@ FIXME: move this to the intro of the upcoming files chapter?

  • PEP 3101: Advanced String Formatting -

    © 2001–9 Mark Pilgrim diff --git a/your-first-python-program.html b/your-first-python-program.html index 05e3198..e85d831 100644 --- a/your-first-python-program.html +++ b/your-first-python-program.html @@ -223,7 +223,7 @@ if __name__ == "__main__":

  • PEP 8: Style Guide for Python Code discusses good indentation style.
  • Python Reference Manual explains what it means to say that everything in Python is an object, because some people are pedantic and like to discuss that sort of thing at great length. -

    © 2001–9 Mark Pilgrim