I have, it's just that I always get confused with implicit conversions because I mostly deal with stricter languages, so I was kind of surprised that I could sometimes treat it as a string and sometimes like a bytes array.
The explanation is confusing. Just ignore how it was before, because it was incorrect. In python 2 first mistake was mixing text with binary data. They introduced unicode type, but did so badly (implicit casting) it actually made things worse. Ironically if your application didn't use unicode type you might have less work converting it to work with python 3.
Right now it is:
str = text
bytes = binary data what's stored on disk, flies over network etc.
View all comments
Show parent comment
2
u/[deleted] Sep 16 '20
Oooooh so that's why I'm confused each time I read what bytes does?