Peter Landgren <peter.tal...@telia.com> added the comment: Obviously, 2.5 and 2.6 decode the "string.lowercase" when print is used and 2.6 seems to be the correct.
Yes. I get exactly the same result in both Python 2.5.2 (r252:60911, Jan 8 2009, 12:17:37) and Python 2.6.2 (r262:71600, Jul 23 2009, 09:01:02) showing that string.lowercase does NOT change with locale. 'sv_SE.UTF-8' >>> a = string.lowercase >>> len(a) 26 >>> a 'abcdefghijklmnopqrstuvwxyz' >>> print a abcdefghijklmnopqrstuvwxyz >>> string.ascii_lowercase == string.lowercase True >>> ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6525> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com