Re: A bug for unicode strings in Python 2.4?

2006-01-11 Thread Szabolcs Nagy
Thanks. I'll write my own split(). do you want to split character by character? then use list(u'\u9019\u662f\u4e2d\u6587\u5b57\u4e32') -- http://mail.python.org/mailman/listinfo/python-list

A bug for unicode strings in Python 2.4?

2006-01-10 Thread Thomas Moore
Hi: Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)] on win32 Type help, copyright, credits or license for more information. u=u'\u9019\u662f\u4e2d\u6587\u5b57\u4e32' u.split() [u'\u9019\u662f\u4e2d\u6587\u5b57\u4e32'] I think u should get split. --Frank --

Re: A bug for unicode strings in Python 2.4?

2006-01-10 Thread Neil Hodgson
Thomas Moore: u=u'\u9019\u662f\u4e2d\u6587\u5b57\u4e32' u.split() [u'\u9019\u662f\u4e2d\u6587\u5b57\u4e32'] I think u should get split. Where do you think 這是中文字串 should be split and why? Neil -- http://mail.python.org/mailman/listinfo/python-list

Re: A bug for unicode strings in Python 2.4?

2006-01-10 Thread Thomas Moore
Thomas Moore: u=u'\u9019\u662f\u4e2d\u6587\u5b57\u4e32' u.split() [u'\u9019\u662f\u4e2d\u6587\u5b57\u4e32'] I think u should get split. Where do you think 這是中文字串 should be split and why? Isn't a unicode string character by character? -Frank --

Re: A bug for unicode strings in Python 2.4?

2006-01-10 Thread Fredrik Lundh
Thomas Moore wrote: Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)] on win32 Type help, copyright, credits or license for more information. u=u'\u9019\u662f\u4e2d\u6587\u5b57\u4e32' u.split() [u'\u9019\u662f\u4e2d\u6587\u5b57\u4e32'] I think u should get split.

Re: A bug for unicode strings in Python 2.4?

2006-01-10 Thread Thomas Moore
Hi: Thanks. I'll write my own split(). Frank -- http://mail.python.org/mailman/listinfo/python-list