]> granicus.if.org Git - python/commit
Let u'%s' % obj try obj.__unicode__() first and fallback to obj.__str__().
authorMarc-André Lemburg <mal@egenix.com>
Fri, 23 Jul 2004 16:13:25 +0000 (16:13 +0000)
committerMarc-André Lemburg <mal@egenix.com>
Fri, 23 Jul 2004 16:13:25 +0000 (16:13 +0000)
commitd25c650461b6010ad66768e4495e780683745ced
treef6e85aa066a781717bfc58294888f27596b57341
parentfe0808382b4bae113ad254ed1d984e94294beea0
Let u'%s' % obj try obj.__unicode__() first and fallback to obj.__str__().
Lib/test/test_unicode.py
Objects/unicodeobject.c