Author zuo
Recipients ggenellina, hongqn, pitrou, sorin, steven.daprano, zuo
Date 2009-05-12.14:56:01
SpamBayes Score 0.00298946
Marked as misclassified No
Message-id <1242140163.71.0.8830290381.issue4947@psf.upfronthosting.co.za>
In-reply-to
Content
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()
History
Date User Action Args
2009-05-12 14:56:03zuosetrecipients: + zuo, ggenellina, pitrou, hongqn, steven.daprano, sorin
2009-05-12 14:56:03zuosetmessageid: <1242140163.71.0.8830290381.issue4947@psf.upfronthosting.co.za>
2009-05-12 14:56:02zuolinkissue4947 messages
2009-05-12 14:56:02zuocreate