Need help with my 1st python program

2010-05-08 Thread Dave Luzius
Pleaser help me with this. Here's a copy of the program, but it keeps calling for me to define pressure. # A small program to fetch local barometer reading from weather.com # and convert the value from metric to imperial. # My

Re: Need help with my 1st python program

2010-05-08 Thread Steven D'Aprano
On Sat, 08 May 2010 18:52:33 +, Dave Luzius wrote: Pleaser help me with this. Here's a copy of the program, but it keeps calling for me to define pressure. That's because you haven't defined pressure. When Python tells you there is a bug in your program, it is almost always correct. #

Re: Need help with my 1st python program

2010-05-08 Thread Dave Luzius
On Sat, 08 May 2010 19:02:42 +, Steven D'Aprano wrote: On Sat, 08 May 2010 18:52:33 +, Dave Luzius wrote: Pleaser help me with this. Here's a copy of the program, but it keeps calling for me to define pressure. That's because you haven't defined pressure. When Python tells you

Re: Need help with my 1st python program

2010-05-08 Thread Walter Brameld IV
Dave Luzius wrote: On Sat, 08 May 2010 19:02:42 +, Steven D'Aprano wrote: On Sat, 08 May 2010 18:52:33 +, Dave Luzius wrote: Pleaser help me with this. Here's a copy of the program, but it keeps calling for me to define pressure. That's because you haven't defined pressure. When

Re: Need help with my 1st python program

2010-05-08 Thread Benjamin Kaplan
On Sat, May 8, 2010 at 3:13 PM, Dave Luzius dluz...@comcast.net wrote: Pressure is a term for barometric pressure, and is understood by Conky, which this program is designed to work with, and is understood by weather.com. But the value it passes to conky is metric, and I want it to display

Re: Need help with my 1st python program

2010-05-08 Thread Steven D'Aprano
On Sat, 08 May 2010 19:13:12 +, Dave Luzius wrote: What is pressure? It is an undefined name. Where does pressure get its value from? Pressure is a term for barometric pressure, and is understood by Conky, which this program is designed to work with, and is understood by weather.com.

Re: Need help with my 1st python program

2010-05-08 Thread Vincent Davis
I think what is not clear by what is being said is that you have passed in pressure and not 'pressure'. The first is undefined, pressure = 1 would define it. Where as 'pressure' is a string type. On Sat, May 8, 2010 at 1:35 PM, Walter Brameld IV wb4remove_this_t...@wbrameld4.name wrote: Dave