]> granicus.if.org Git - python/commit
Implement the changes proposed in patch #413333. unicode(obj) now
authorMarc-André Lemburg <mal@egenix.com>
Thu, 20 Sep 2001 12:53:16 +0000 (12:53 +0000)
committerMarc-André Lemburg <mal@egenix.com>
Thu, 20 Sep 2001 12:53:16 +0000 (12:53 +0000)
commit6871f6ac57baca19facf5b49846b101c60ef3334
tree033ba35ab876fc889c2691704e3d7e651ae57fa5
parentc60e6f777114f43c64f1b83f9ad2b6e4efd220e7
Implement the changes proposed in patch #413333. unicode(obj) now
works just like str(obj) in that it tries __str__/tp_str on the object
in case it finds that the object is not a string or buffer.
Lib/test/test_unicode.py
Objects/unicodeobject.c