Jan Kaliszewski <z...@chopin.edu.pl> added the comment: PS. The main problem is not a lack of feature but that inconsistency, and that's not documented if File type docs:
print >>my_file, my_unicode # <- is encoded with my_file.encoding my_file.write(my_unicode) # <- is encoded with my_file.encoding # and on the other hand: print my_unicode -- works # <- is encoded with my_file.encoding sys.stdout.write(my_unicode) # <- is encoded with what is returned by sys.getdefaultencoding() ---------- versions: +Python 2.4 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue4947> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com