Andrew Kuchling  committed 55644f0

[Bug #1475080] Fix example

  • Participants
  • Parent commits f81cd7e
  • Branches legacy-trunk

Comments (0)

Files changed (1)

File Doc/whatsnew/whatsnew25.tex

 # Do this instead
 t = (symbol,)
-c.execute('select * from stocks where symbol=?', ('IBM',))
+c.execute('select * from stocks where symbol=?', t)
 # Larger example
 for t in (('2006-03-28', 'BUY', 'IBM', 1000, 45.00),
 The author would like to thank the following people for offering
 suggestions, corrections and assistance with various drafts of this
 article: Phillip J. Eby, Kent Johnson, Martin von~L\"owis, Gustavo
-Niemeyer, Mike Rovner, Thomas Wouters.
+Niemeyer, James Pryor, Mike Rovner, Thomas Wouters.