Bugs item #1696390, was opened at 2007-04-08 15:44 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1696390&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Unicode Group: Python 2.5 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Vsevolod (sv75) Assigned to: M.-A. Lemburg (lemburg) Summary: Strange performance with unicode and lists Initial Comment: I found some strange error (?) when using list of unicodes. Here is a small sample: # Alex in Russian l = [u'\u0410\u043b\u0435\u043a\u0441'] # print method 1 for s in l: print s.encode("utf-8") # print method 2 print [s.encode("utf-8") for s in l] Output is: Алекс ['\xd0\x90\xd0\xbb\xd0\xb5\xd0\xba\xd1\x81'] I suppose than output of both methods should be equal. Or maybe I'm wrong? Python versions: 2.4.4, 2.5 (both version) OS: Ubuntu 6.10, Debian Etch ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1696390&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com