Hellocgitb.enable(0,"d:\temp")Isn’t that expanded to “d:<tab>emp”?
TypeError |
Python 3.2a4:
c:\python32\python.exe Sat Nov 20 09:28:41 2010 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
d:\my\py\test12.py in () |
4 import cgitb |
5 sys.stdout.write("out") |
6 fhb = open("fhb", "wb") |
7 cgitb.enable(0,"d:\\temp") |
=> 8 fhb.write("abcdef") # try writing non-binary to binary file. Expect an error, of course. |
fhb = <_io.BufferedWriter name='fhb'>, fhb.write = <built-in method write of _io.BufferedWriter object> |