Re: [Tutor] basic python question/getting values

2007-01-02 Thread Carroll, Barry
Joe: See below: > -Original Message- > Date: Tue, 2 Jan 2007 19:16:33 + (UTC) > From: Joe M <[EMAIL PROTECTED]> > Subject: [Tutor] basic python question/getting values > To: tutor@python.org > Message-ID: <[EMAIL PROTECTED]> > Content-Type: TEXT/PLAIN

Re: [Tutor] basic python question/getting values

2007-01-02 Thread Joe M
Thanks. I appreciate the quick response. I am going to kick myself for this one ;) On Tue, 2 Jan 2007, Asrarahmed Kadri wrote: > Date: Tue, 2 Jan 2007 19:38:04 + > From: Asrarahmed Kadri <[EMAIL PROTECTED]> > To: Joe M <[EMAIL PROTECTED]> > Subject: Re: [Tutor] basic

Re: [Tutor] basic python question/getting values

2007-01-02 Thread Kent Johnson
Joe M wrote: > I have a few scripts that will return a value ie here I am testing to see > if a database is alive (script is called dbping.py): > > def db_alive(): > dbRunning = '0' > try: > con = pg.connect(dbname='xxx', host='localhost', user > ='xxx',port = xxx) >

[Tutor] basic python question/getting values

2007-01-02 Thread Joe M
I apologize in advanced as I know this is basic information, but I cannot seem to figure it. I have a few scripts that will return a value ie here I am testing to see if a database is alive (script is called dbping.py): def db_alive(): dbRunning = '0' try: con =