Message81717
Not sure it's still important after 3.0 release. Confirmed in trunk:
import codecs
class X:
def __unicode__(self):
print 'unicode'
return u'unicode'
def __str__(self):
print 'str'
return 'str'
x=X()
f = codecs.getwriter('utf8')(open("/tmp/out","w"))
print >> f, x # 'str' |
|
Date |
User |
Action |
Args |
2009-02-12 03:42:04 | ajaksu2 | set | recipients:
+ ajaksu2, lemburg, loewis, facundobatista, hthompson |
2009-02-12 03:42:04 | ajaksu2 | set | messageid: <1234410124.42.0.119713021796.issue637094@psf.upfronthosting.co.za> |
2009-02-12 03:42:02 | ajaksu2 | link | issue637094 messages |
2009-02-12 03:42:02 | ajaksu2 | create | |
|