Re: [Tutor] sqlite: don't understand a code snippet

2009-07-26 Thread David
Rich, thanks a lot -- that was the problem. David Rich Lovely wrote: > 2009/7/25 David : > >> Dear tutors, >> >> I am trying to teach myself the way Python's works with databases. >> I decided to start with SQLite, and am looking at Summerfield's >> 'Programming in Python 3'. >> I got a code

Re: [Tutor] sqlite: don't understand a code snippet

2009-07-25 Thread Rich Lovely
2009/7/25 David : > Dear tutors, > > I am trying to teach myself the way Python's works with databases. > I decided to start with SQLite, and am looking at Summerfield's > 'Programming in Python 3'. > I got a code snippet that I don't fully understand (the comments are mine): > > > def get_and_set_

[Tutor] sqlite: don't understand a code snippet

2009-07-25 Thread David
Dear tutors, I am trying to teach myself the way Python's works with databases. I decided to start with SQLite, and am looking at Summerfield's 'Programming in Python 3'. I got a code snippet that I don't fully understand (the comments are mine): def get_and_set_director(db, director): # try