QPY h8 and unicode.replace
2008-05-02
David K. Hess2008-05-02
Binger David2008-05-04
Mario Ruggier2008-05-04
Binger David2008-05-05
David K. Hess2008-05-06
Mario RuggierQPY h8 and unicode.replace
Binger David
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(';', '.').