Re: [DB-SIG] Python db programming conventions

2010-11-21 Thread John Q. Public
Is this how my createdb() method should look like? How would you write this method so it is both readable and correct? Thank you for your time and patience. def createdb(self): try: con = sqlite3.connect(db) cur = con.cursor() cur.execute(''' CREAT

Re: [DB-SIG] Python db programming conventions

2010-11-21 Thread Vernon Cole
I find this code to be very readable. I, personally, would not use quite so much vertical white space, like whole lines with only a "(", but that is a matter of aesthetics only. My senses were probably permanently marred by learning to program using punched cards and 14 7/8 inch printer paper. Ver

Re: [DB-SIG] Python db programming conventions

2010-11-21 Thread Andy Dustman
On Sun, Nov 21, 2010 at 3:02 PM, John Q. Public wrote: > > Is this how my createdb() method should look like? > How would you write this method so it is both readable and correct? > Thank you for your time and patience. > > def createdb(self): >    try: >        con = sqlite3.connect(db) >