Does Python 3.x support Unicode-named attributes?
John Nagle
nagle at animats.com
Thu Nov 19 11:22:09 EST 2009
Does Python 3.x support Unicode-named attributes?
There are several modules which operate on HTML and try to
hammer HTML/XML into Python object attributes. I've had
BeautifulSoup and "urllib" blow up at various times when
running on non-English HTML/XML.
Got this error today:
urllib.py:1197: UnicodeWarning: Unicode equal comparison failed to convert both
arguments to Unicode - interpreting
them as being unequal
res = map(safe_map.__getitem__, s)
John Nagle
More information about the Python-list
mailing list