durusmail: qp: QPY h8 and unicode.replace
QPY h8 and unicode.replace
2008-05-02
2008-05-02
2008-05-04
2008-05-04
2008-05-05
2008-05-06
QPY h8 and unicode.replace
Binger David
2008-05-04
On May 4, 2008, at 6:24 AM, Mario Ruggier wrote:

>
> On May 2, 2008, at 6:12 PM, Binger David wrote:
>
>> I think replace needs to be different because
>> you don't have much reason to know that a particular
>> call will preserve the 'already-xml-quoted' property.
>
> I am not sure I understand what you mean.
>
> In any case, what would seem to me to be natural and consistent
> behaviour is to just quote the match and/or replacement strings, if
> they are themselves not yet an h8 instance.

The problem is that replace (like strip and slice)  can
break entities.

w.replace(';', '.').










reply