[Python-Dev] Unicode: When Things Get Hairy
Moshe Zadka
Moshe Zadka <mzadka@geocities.com>
Sat, 11 Mar 2000 11:10:12 +0200 (IST)
The following "problem" is easy to fix. However, what I wanted to know is
if people (Skip and Guido most importantly) think it is a problem:
>>> "a" in u"bbba"
1
>>> u"a" in "bbba"
Traceback (innermost last):
File "<stdin>", line 1, in ?
TypeError: string member test needs char left operand
Suggested fix: in stringobject.c, explicitly allow a unicode char left
operand.
--
Moshe Zadka <mzadka@geocities.com>.
http://www.oreilly.com/news/prescod_0300.html