Author tcarroll
Recipients
Date 2007-06-26.20:20:10
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
In section 13.13 of the PDF version Python Library Reference (on SQLite), a number of examples are dropped and instead have what looks like a statement that should have had the examples imported.

The HTML pages look fine, however.

For example, in section 13.13.3, in the PDF file it reads:

"""
This example shows how to use parameters with qmark style:
 1.py
This example shows how to use the named style:
 2.py
"""

In the HTML, it reads, correctly:

"""
This example shows how to use parameters with qmark style:

  import sqlite3

  con = sqlite3.connect("mydb")

  cur = con.cursor()

  who = "Yeltsin"
  age = 72

  cur.execute("select name_last, age from people where name_last=? and age=?", (who, age))
  print cur.fetchone()

  Download as text (original file name: sqlite3/execute_1.py).

This example shows how to use the named style:

  import sqlite3

  con = sqlite3.connect("mydb")

  cur = con.cursor()

  who = "Yeltsin"
  age = 72

  cur.execute("select name_last, age from people where name_last=:who and age=:age",
    {"who": who, "age": age})
  print cur.fetchone()

  Download as text (original file name: sqlite3/execute_2.py). 

"""

I've only looked at Chapter 13.13 (because I'm starting to use SQLite) and have found this in the following sections:

 13.13.1 (under complete_statement)
 13.13.2 (under row_factory and text_factory)
 13.13.3 (4 instances)
 13.13.4 (5 instances)
 13.13.6 (1 instance)

I'm attaching PDFs of the start of section 13.13.3 for comparison purposes: one copy from the PDF from http://docs.python.org/ftp/python/doc/2.5/pdf-letter-2.5.zip and one copy from the HTML at http://docs.python.org/lib/sqlite3-Cursor-Objects.html

History
Date User Action Args
2007-08-23 14:58:02adminlinkissue1743846 messages
2007-08-23 14:58:02admincreate