25 lines
585 B
Plaintext
25 lines
585 B
Plaintext
From: samschul at ix.netcom.com (Sam Schulenburg)
|
|
Date: Tue, 13 Apr 1999 09:59:57 -0700
|
|
Subject: New Python Book err on Page 265
|
|
Message-ID: <7evt60$2e7@dfw-ixnews9.ix.netcom.com>
|
|
X-UID: 136
|
|
|
|
I received the new Programming Python book and found an error on Page 265 in
|
|
the get_temperature(country,state,city) function.
|
|
|
|
line 13: stop = string.index(data,'°v;F',start-1)
|
|
s/b stop = string.index(data,'°F',start-1)
|
|
|
|
With this correction the function works as advertised.
|
|
|
|
Mark this is a great book.
|
|
|
|
Sam Schulenburg
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|