This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author zuo
Recipients ggenellina, hongqn, pitrou, ssbarnea, steven.daprano, zuo
Date 2009-05-12.14:56:01
SpamBayes Score 0.0029894584
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, ssbarnea
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