[Python-Dev] unicode inconsistency?
Neil Schemenauer
nas at arctrix.com
Thu Sep 9 22:03:26 CEST 2004
On Thu, Sep 09, 2004 at 03:00:07PM -0400, Tim Peters wrote:
> [Martin v. L?wis]
> > I can't see any harm by supporting this operation also if __str__ returns
> > a Unicode object.
>
> It doesn't sound like a good idea to me, at least in part because it
> would be darned messy to implement short of saying "OK, we don't give
> a rip anymore about what type of objects PyObject_{Str,Repr} return"
Just to be clear, I don't propose allowing PyObject_Str and
PyObject_Repr to return unicode objects. That would be a disaster,
IMO.
Neil
More information about the Python-Dev
mailing list