2 ms·
> traditional conflation of characters and bytes But that's precisely what "string" vs "bytes" untangles... (talking Python 3 here; Python 2 suffers precisely
by FabHK 9y ago
> traditional conflation of characters and bytes
But that's precisely what "string" vs "bytes" untangles... (talking Python 3 here; Python 2 suffers precisely from the mess you mention)
- brudgers 9y agoThe previous comment used "Python" without specifying which one...and part of me feels that to some degree Python 3 just put another layer on the mess because it still did not make the important distinction between texts as human readable artifacts and strings as a computer science concept. Or to put it another way, a stream of bytes can readily be parsed as a string of characters by an automaton because bytes can be parsed as characters and a stream as a string. But this all happens at a lower level of abstraction than text as something that humans read and write both with and without computers. I mean Python 3's distinction between strings and bytes in no way address messy problems like ß/ss in German.