Python, Unicode, Excel and Web Tesing

Peter Otten __peter__ at
Fri Nov 7 09:25:38 CET 2003

calfdog at wrote:

[problems with excel automation, reportedly due to unicode]


is a tuple, you are doing


to extract the last item in that tuple, which is, by the way, the same as
the first item (u'Test1',)[0] in this case.

So you may still run into trouble when you inadvertently try to convert your
unicode string into a str *and* it contains characters with ord(c) >= 128.

However, rest assured that Python will spit out a helpful traceback :-)


More information about the Python-list mailing list