2.2.3 (#2, Jul 28 2003, 17:29:22)
[GCC egcs-2.91.66 19990314 (egcs-1.1.2 release)]
--> -->
| NameError | Python 2.2.3: /usr/local/bin/python Sat Nov 22 07:43:17 2008 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
| /htdocs/userdirs/zackw/python-interpreter-problem.cgi |
| 11 print '<html><body><pre>' |
| 12 print sys.version |
| 13 print cgi.escape(`UnicodeDecodeError`) |
| 14 |
| 15 print '</pre></body></html>' |
| cgi = <module 'cgi' from '/usr/local/lib/python2.2/cgi.pyc'>, cgi.escape = <function escape>, UnicodeDecodeError undefined |
NameError: name 'UnicodeDecodeError' is not defined
__doc__ =
'Name not found globally.'
__getitem__ =
<bound method NameError.__getitem__ of <exceptions.NameError instance>>
__init__ =
<bound method NameError.__init__ of <exceptions.NameError instance>>
__module__ =
'exceptions'
__str__ =
<bound method NameError.__str__ of <exceptions.NameError instance>>
args =
("name 'UnicodeDecodeError' is not defined",)