[Python-checkins] python/dist/src/Objects unicodeobject.c,2.176,2.177

Walter Dörwald walter@livinglogic.de
Wed, 08 Jan 2003 23:22:27 +0100


Guido van Rossum wrote:
>>Modified Files:
>>	unicodeobject.c 
>>Log Message:
>>Remove variable owned from PyUnicode_FromEncodedObject, which is unused
>>(except for Py_DECREF calls) since the introduction of __unicode__.
>
 > [...]
> 
> Are you sure that the real problem isn't that the assignment
> 
>   owned = 1;
> 
> somewhere got lost?

If I interpret the CVS correctly, owned was introduced in 2.40 by MAL
to deal with classes that implement __str__. After it was decided
that unicode conversion was to be done via __unicode__, the code
branch that had owned = 1 was removed by you (using MAL patch
#470578) in revision 2.119,  so I'm pretty sure owned no longer
has any use.

Bye,
    Walter Dörwald