[Python-3000] Need help fixing failing Py3k Unittests in py3k-struni

Guido van Rossum guido at python.org
Wed Jul 11 23:03:03 CEST 2007


On 7/11/07, Walter Dörwald <walter at livinglogic.de> wrote:
> I guess for the final version of Py3000 type_set_name() in typeobject.c
> will not downgrade unicode strings to str8, but instead upgrade str8
> objects to unicode.

Right, Thomas is working on this (but I have some feedback on his fix).

> Also now that PyObject_Unicode() tries __unicode__ first and then tp_str
> should we rename all __unicode__ methods to __str__, or will __unicode__
> stay?

__unicode__ should be renamed to __str__, or removed (depending on
whether the __str__ method already does the right thing).

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-3000 mailing list