Message87637
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() |
|
Date |
User |
Action |
Args |
2009-05-12 14:56:03 | zuo | set | recipients:
+ zuo, ggenellina, pitrou, hongqn, steven.daprano, ssbarnea |
2009-05-12 14:56:03 | zuo | set | messageid: <1242140163.71.0.8830290381.issue4947@psf.upfronthosting.co.za> |
2009-05-12 14:56:02 | zuo | link | issue4947 messages |
2009-05-12 14:56:02 | zuo | create | |
|