Aug-28-2023, 02:58 AM
does anyone use the bytes type when dealing with ASCII characters, such as when the input provides the characters as bytes and/or (especially when and) the output wants the characters from you in bytes?
or should i just always convert bytes to str when i need to dabble with the characters instead of working with bytes directly?
i wonder how i might opine about this if i were a Python developer for C level functions and interfaces. for example subprocess.Popen accepts either str or bytes. i'm not such a developer and that might be a good thing.
or should i just always convert bytes to str when i need to dabble with the characters instead of working with bytes directly?
i wonder how i might opine about this if i were a Python developer for C level functions and interfaces. for example subprocess.Popen accepts either str or bytes. i'm not such a developer and that might be a good thing.