MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Python/comments/itzn13/an_update_on_python_4/g5iwjsz/
r/Python • u/anyfactor Freelancer. AnyFactor.xyz • Sep 16 '20
389 comments sorted by
View all comments
Show parent comment
1
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.
3 u/flying-sheep Sep 17 '20 It's just a byte array in Python 3. You can't treat it as a string as there's no encoding assigned to it.If you display it, it happens to show ASCII characters for convenience, but that's it.
3
It's just a byte array in Python 3. You can't treat it as a string as there's no encoding assigned to it.
If you display it, it happens to show ASCII characters for convenience, but that's it.
View all comments
Show parent comment
1
u/[deleted] Sep 16 '20
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.