[Python-Dev] Re: adding a bytes sequence type to Python
Skip Montanaro
skip at pobox.com
Sat Aug 14 15:02:59 CEST 2004
>> ... 8-bit strings for b'xxx' (the current implementation is already
>> doing the right thing, meaning that it is 8-bit safe regardeless of
>> the source code encoding) ?
Martin> Not exactly - the current implementation is not safe with
Martin> respect to re-encoding source in a different encoding.
Can't such re-encoding tools (whatever they are) be intelligent about
b"..."? If they are Python-aware that seems fairly trivial. If not, the
job is more difficult.
Skip
More information about the Python-Dev
mailing list