2 ms·
Could you use the "bytes" type instead of the "string" type for that low-level stuff?
by sp332 13y ago
Could you use the "bytes" type instead of the "string" type for that low-level stuff?
- andreasvc 13y agoThat would be preferable in these situations. However, the problem is that the standard library uses Unicode for filenames and stdin/out by default, as described in the blog post, and you get errors as soon as anything cannot be decoded.
- sp332 13y agoAw, I knew it couldn't be that easy.