Re: [Tutor] pgdb and console output

2010-03-11 Thread pylist1
On Wed, 10 Mar 2010, Alan Gauld wrote: "pylist1" wrote Yes, stdout.write has no formatting if you need spaces or newlines you have to explicitly provide them. Got it. See the Talking to the User topic in my tutorial for more detail on the differences. OK I will chec

Re: [Tutor] pgdb and console output

2010-03-09 Thread pylist1
On Mon, 8 Mar 2010, Alan Gauld wrote: "hithere there" wrote #! /usr/bin/env python import pgdb, sys db = pgdb.connect (dsn='192.168.0.1:familydata', user='postgres', password='') cursor = db.cursor () cursor.execute ("select * from names") rows = cursor.fetchall () for i in (ro