String comparison

Delaney, Timothy tdelaney at avaya.com
Wed Aug 21 19:31:50 EDT 2002


postReply = urllib.urlopen("http://css.kwe.com/web.forte", postdata).read()
 print postReply
 
 f = open("D:\PythonServerMonitor\KWE1144589.dat","r")
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

I suspect the problem is here. You probably aren't managing to open the
file, as the string contains unescaped backslashes.

Look at section 2.4.1 String Literals in the python documentation.

Tim Delaney




More information about the Python-list mailing list