<Paul_Koning <at> Dell.com> writes:

I would only want/expect to see “bytes” types when the values in question
are binary data streams, or
unknown format.  But anytime we’re dealing with text strings, the Python 3
approach is that the Python
code sees “str” type, and questions of encoding have been handled at the
edge.  This is where Python 3

This is not true, see above.

What I mean is that you cannot leave it to the application. Once a "str"
type is returned is has to be assumed that it contains unicode data. "str"
classes do not have a decode method or is there a way to decode the data
hold by a "str" object assuming that is encoded and not unicode?

No objections here? I am not an expert to be without doubts on what I said myself. So please tell me if I am wrong.

Christian


_______________________________________________
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32

Reply via email to