Comment on PEP 263 - Defining Python Source Code Encodings
Martin v. Löwis
loewis at informatik.hu-berlin.de
Mon May 13 08:53:23 EDT 2002
"Stephen J. Turnbull" <stephen at xemacs.org> writes:
> Martin> Sure, but Python should allow to implement such
> Martin> interapplication communication, so application programmers
> Martin> need a way to emit them.
>
> What's wrong with `f.write("codecs.BOM")'?
That works for writing it. How do you write an application that reads
data in differing endiannesses?
> Well, the current implementation (2.1.3, anyway) cannot be considered
> "support", as it handles appends incorrectly. See my other post or
> bug #555360. And I still don't see Python internal string conversion
> as _interapplication_ communication.
The string conversion is not "internal": it is the conversion between
a byte string and a character string. Whether you use this conversion
or not is your choice.
Regards,
Martin
More information about the Python-list
mailing list