commit | 1b1bcc993579e64d751dc75bc8521adb9e94c732 | [log] [tgz] |
---|---|---|
author | Marc-André Lemburg <mal@egenix.com> | Fri Jul 07 13:48:25 2000 +0000 |
committer | Marc-André Lemburg <mal@egenix.com> | Fri Jul 07 13:48:25 2000 +0000 |
tree | 8c8da5d52c9f4f0298b35d47880d838e8fe96951 | |
parent | 5a5c81a0e9550eaab92c9817259dee5a52f69871 [diff] |
Fixed unicode() to use the new API PyUnicode_FromEncodedObject(). This adds support for instance to the constructor (instances have to define __str__ and can return Unicode objects via that hook; string return values are decoded into Unicode using the current default encoding).