3 ms·
I think you’d probably get used to it after using it a couple of times/being familiar with what the types represent. Text is a sequence of characters, but you c
by minitech 10y ago
I think you’d probably get used to it after using it a couple of times/being familiar with what the types represent. Text is a sequence of characters, but you can encode it into a sequence of bytes when necessary. Give it a try!
Also, it’s probably worth mentioning that you rarely need to use `encode` or `decode` in Python 3. Most text can just stay text. If you make a mistake, the stronger types are there to help you notice it.