[Python-ideas] Py3 unicode impositions
Yuval Greenfield
ubershmekel at gmail.com
Sat Feb 11 11:51:52 CET 2012
On Feb 11, 2012 12:41 PM, "Paul Moore" <p.f.moore at gmail.com> wrote
> if we had a good place to put it, a FAQ entry about "what to do if I
> need to process a file whose encoding I don't know" would be useful.
> And certainly having a standard answer that people could give when the
> question comes up (something practical, not a purist answer like "all
> files have an encoding, so you should find out") would help.
I think if the bytes type behaved exactly like python2's string it would
have been the best option. When you work with "wb" or "rb" you get quite a
hint that you're doing it wrong. But devs would have a viable ambiguous
*string* type (vs bytes and their integer cells).
Yuval
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20120211/3cbffd53/attachment.html>
More information about the Python-ideas
mailing list