<< 靈 5 � 傑� �맑� � 量 Gnu Free Document License >>

Appendix A. Further reading

Chapter 1. Getting To Know Python

Chapter 2. The Power Of Introspection

Chapter 3. An Object-Oriented Framework

Chapter 4. HTML Processing

Chapter 5. Unit Testing

Appendix B. A 5-minute review

Chapter 1. Getting To Know Python

Chapter 2. The Power Of Introspection

Chapter 3. An Object-Oriented Framework

Chapter 4. HTML Processing

Chapter 5. Unit Testing

Appendix C. Tips and tricks

Chapter 1. Getting To Know Python

Chapter 2. The Power Of Introspection

Chapter 3. An Object-Oriented Framework

Chapter 4. HTML Processing

Chapter 5. Unit Testing

Appendix D. List of examples

Chapter 1. Getting To Know Python

Chapter 2. The Power Of Introspection

Chapter 3. An Object-Oriented Framework

Chapter 4. HTML Processing

Chapter 5. Unit Testing

Appendix E. Revision history

Revision History
Revision 3.431 May 2001
Revision 3.324 May 2001
Revision 3.23 May 2001
  • Added Introducing dialect.py.
  • Added Regular expressions 101.
  • Fixed bug in handle_decl method that would produce incorrect declarations (adding a space where it couldn't be).
  • Fixed bug in CSS (introduced in 2.9) where body background color was missing.
Revision 3.118 Apr 2001
  • Added code in BaseHTMLProcessor.py to handle declarations, now that Python 2.1 supports them.
  • Added note about nested scopes in locals and globals.
  • Fixed obscure bug in Example 4.1. BaseHTMLProcessor.py where attribute values with character entities would not be properly escaped.
  • Now recommending (but not requiring) Python 2.1, due to its support of declarations in sgmllib.py.
  • Updated download links on thes home page to point to Python 2.1, where available.
  • Moved to versioned filenames, to help people who redistribute the book.
Revision 3.016 Apr 2001
Revision 2.913 Apr 2001
  • Added locals and globals.
  • Added Dictionary-based string formatting.
  • Tightened code in HTML Processing, specifically ChefDialectizer, to use fewer and simpler regular expressions.
  • Fixed a stylesheet bug that was inserting blank pages between chapters in the PDF version.
  • Fixed a script bug that was stripping the DOCTYPE from the home page.
  • Added link to Python Cookbook, and added a few links to individual recipes in Further reading.
  • Switched to Google for searching on https://book.diveintopython.org/.
  • Upgraded to version 1.36 of the DocBook XSL stylesheets, which was much more difficult than it sounds. There may still be lingering bugs.
Revision 2.826 Mar 2001
Revision 2.716 Mar 2001
Revision 2.628 Feb 2001
  • The PDF and Word versions now have colorized examples, an improved table of contents, and properly indented tips and notes.
  • The Word version is now in native Word format, compatible with Word 97.
  • The PDF and text versions now have fewer problems with improperly converted special characters (like trademark symbols and curly quotes).
  • Added link to download Word version for UNIX, in case some twisted soul wants to import it into StarOffice or something.
  • Fixed several notes which were missing titles.
  • Fixed stylesheets to work around bug in Internet Explorer 5 for Mac OS which caused colorized words in the examples to be displayed in the wrong font. (Hello?!? Microsoft? Which part of <pre> don't you understand?)
  • Fixed archive corruption in Mac OS downloads.
  • In first section of each chapter, added link to download examples. (My access logs show that people skim or skip the two pages where they could have downloaded them (the home page and Preface), then scramble to find a download link once they actually start reading.)
  • Tightened the home page and Preface even more, in the hopes that someday someone will read them.
  • Soon I hope to get back to actually writing this book instead of debugging it.
Revision 2.523 Feb 2001
Revision 2.4.112 Feb 2001
  • Changed newsgroup links to use “news:” protocol, now that deja.com is defunct.
  • Added file sizes to download links.
Revision 2.412 Feb 2001
  • Added “further reading” links in most sections, and collated them in Further reading.
  • Added URLs in parentheses next to external links in text version.
Revision 2.39 Feb 2001
Revision 2.22 Feb 2001
  • Edited Getting object references with getattr.
  • Added titles to xref tags, so they can have their cute little tooltips too.
  • Changed the look of the revision history page.
  • Fixed problem I introduced yesterday in my HTML post-processing script that was causing invalid HTML character references and breaking some browsers.
  • Upgraded to version 1.29 of the DocBook XSL stylesheets.
Revision 2.11 Feb 2001
  • Rewrote the example code of The Power Of Introspection to use getattr instead of exec and eval, and rewrote explanatory text to match.
  • Added example of list operators in Lists 101.
  • Added links to relevant sections in the summary lists at the end of each chapter (Summary and Summary).
Revision 2.031 Jan 2001
Revision 1.915 Jan 2001
Revision 1.812 Jan 2001
Revision 1.713 Jan 2001
  • Made several modifications to stylesheets to improve browser compatibility.
Revision 1.72 Jan 2001
  • Added introduction to Getting To Know Python.
  • Added introduction to The Power Of Introspection.
  • Added review section to An Object-Oriented Framework [later removed]
  • Added Private functions.
  • Added for loops.
  • Added Assigning multiple values at once.
  • Wrote scripts to convert book to new output formats: one single HTML file, PDF, Microsoft Word 97, and plain text.
  • Registered the diveintopython.org domain and moved the book there, along with links to download the book in all available output formats for offline reading.
  • Modified the XSL stylesheets to change the header and footer navigation that displays on each page. The top of each page is branded with the domain name and book version, followed by a breadcrumb trail to jump back to the chapter table of contents, the main table of contents, or the site home page.
Revision 1.611 Dec 2000
Revision 1.522 Nov 2000
Revision 1.414 Nov 2000
  • Added Filtering lists.
  • Added dir documentation to type, str, dir, and other built-in functions.
  • Added in example in Tuples 101.
  • Added additional note about if __name__ trick under MacPython.
  • Switched to the SAXON XSLT processor from Michael Kay of ICL.
  • Upgraded to version 1.24 of the DocBook XSL stylesheets.
  • Added db-html processing instructions with explicit filenames of each chapter and section, to allow deep links to content even if I add or re-arrange sections later.
  • Made several common phrases into entities for easier reuse.
  • Changed several literal tags to constant.
Revision 1.39 Nov 2000
  • Added section on dynamic code execution.
  • Added links to relevant section/example wherever I refer to previously covered concepts.
  • Expanded introduction of chapter 2 to explain what the function actually does.
  • Explicitly placed example code under the GNU General Public License and added appendix to display license.
  • Changed links to licenses to use xref tags, now that I know how to use them.
Revision 1.26 Nov 2000
  • Added first four sections of chapter 2.
  • Tightened up preface even more, and added link to Mac OS version of Python.
  • Filled out examples in "Mapping lists" and "Joining strings" to show logical progression.
  • Added output in chapter 1 summary.
Revision 1.131 Oct 2000
  • Finished chapter 1 with sections on mapping and joining, and a chapter summary.
  • Toned down the preface, added links to introductions for non-programmers.
  • Fixed several typos.
Revision 1.030 Oct 2000
  • Initial publication

Appendix F. About the book

This book was written in DocBook XML using Emacs, and converted to HTML using the SAXON XSLT processor from Michael Kay of ICL with a customized version of Norman Walsh's XSL stylesheets. From there, it was converted to PDF using HTMLDoc, and to plain text using w3m. Program listings and examples were colorized using an updated version of Just van Rossum's pyfontify.py, which is included in the example scripts.

If you're interested in learning more about DocBook for technical writing, you can download the XML source for this book (Windows, UNIX, Mac OS), which also includes the customized XSL stylesheets. You should also read the canonical book, DocBook: The Definitive Guide. If you're going to do any serious writing in DocBook, I would recommend subscribing to the DocBook mailing lists.


<< 靈 5 � 傑� �맑� � 量 Gnu Free Document License >>