11 Aug
2016
11 Aug
'16
4:57 a.m.
On Wed, Aug 10, 2016, at 17:31, Chris Angelico wrote:
AIUI, the data flow would be: Python bytes object
Nothing _starts_ as a Python bytes object. It has to be read from somewhere or encoded in the source code as a literal. The scenario is very different for "defined internally within the program" (how are these not gonna be ASCII) vs "user input" (user input how? from the console? from tkinter? how'd that get converted to bytes?) vs "from a network or something like a tar file where it represents a path on some other system" (in which case it's in whatever encoding that system used, or *maybe* an encoding defined as part of the network protocol or file format). The use case has not been described adequately enough to answer my question.