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 ajaksu2
Recipients ajaksu2, facundobatista, hthompson, lemburg, loewis
Date 2009-02-12.03:42:02
SpamBayes Score 2.3691542e-05
Marked as misclassified No
Message-id <1234410124.42.0.119713021796.issue637094@psf.upfronthosting.co.za>
In-reply-to
Content
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'
History
Date User Action Args
2009-02-12 03:42:04ajaksu2setrecipients: + ajaksu2, lemburg, loewis, facundobatista, hthompson
2009-02-12 03:42:04ajaksu2setmessageid: <1234410124.42.0.119713021796.issue637094@psf.upfronthosting.co.za>
2009-02-12 03:42:02ajaksu2linkissue637094 messages
2009-02-12 03:42:02ajaksu2create