unicode encoding usablilty problem

Fredrik Lundh fredrik at pythonware.com
Sat Feb 19 12:44:27 EST 2005


"aurora" <aurora00 at gmail.com> wrote:

> I don't want to mix them. But how could I find them? How do I know this  statement can be 
> potential problem
>
>   if a==b:
>
> where a and b can be instantiated individually far away from this line of  code that put them 
> together?

if you don't know what a and b comes from, how can you be sure that
your program works at all?  how can you be sure they're both strings?

("a op b" can fail in many ways, depending on what "a", "b", and "op" are)

> Things works fine, unit tests pass, all until the first non-ASCII characters
> come in and then the program breaks.

if you have unit tests, why don't they include Unicode tests?

</F> 






More information about the Python-list mailing list