diff Python/graminit.c @ 13402:7fbdb581838f legacy-trunk

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).
author Marc-André Lemburg <mal@egenix.com>
date Fri, 07 Jul 2000 13:48:25 +0000
parents 603db0d0aed1
children 25fd9846bd54
line wrap: on
line diff