From a631f3a547498a124dcb9b4d7071a4ac3ad0badb Mon Sep 17 00:00:00 2001 From: Mark Pilgrim Date: Sat, 16 May 2009 01:17:05 -0400 Subject: [PATCH] validation fiddling --- advanced-classes.html | 2 +- advanced-iterators.html | 2 +- case-study-porting-chardet-to-python-3.html | 2 +- native-datatypes.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-classes.html b/advanced-classes.html index e96eae1..a44fad4 100644 --- a/advanced-classes.html +++ b/advanced-classes.html @@ -96,7 +96,7 @@ class OrderedDict(dict, collections.MutableMapping):

Implementing Fractions

-

© 2001–9 Mark Pilgrim diff --git a/advanced-iterators.html b/advanced-iterators.html index b7280ab..62c2886 100644 --- a/advanced-iterators.html +++ b/advanced-iterators.html @@ -568,7 +568,7 @@ NameError: name '__import__' is not defined

Many, many thanks to Raymond Hettinger for agreeing to relicense his code so I could port it to Python 3 and use it as the basis for this chapter. -

© 2001–9 Mark Pilgrim diff --git a/case-study-porting-chardet-to-python-3.html b/case-study-porting-chardet-to-python-3.html index 02af7ff..d4fdb13 100644 --- a/case-study-porting-chardet-to-python-3.html +++ b/case-study-porting-chardet-to-python-3.html @@ -1179,7 +1179,7 @@ tests\EUC-JP\arclamp.jp.xml EUC-JP with confide

  • Test cases are essential. Don’t port anything without them. Don’t even try. The only reason I have any confidence at all that chardet works in Python 3 is because I had a test suite that exercised every line of code in the entire library. I never would have found half of these problems with manual spot-checking. -

    © 2001–9 Mark Pilgrim diff --git a/native-datatypes.html b/native-datatypes.html index c219056..3c81318 100644 --- a/native-datatypes.html +++ b/native-datatypes.html @@ -454,7 +454,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/regular-expressions.html b/regular-expressions.html index 330b32b..3e207b8 100644 --- a/regular-expressions.html +++ b/regular-expressions.html @@ -418,7 +418,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 c8aa5d4..7bddbfd 100644 --- a/strings.html +++ b/strings.html @@ -421,7 +421,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 2aa0582..f8513d5 100644 --- a/your-first-python-program.html +++ b/your-first-python-program.html @@ -265,7 +265,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 pedants and like to discuss that sort of thing at great length. -

    © 2001–9 Mark Pilgrim