3 ms·
>Recent versions only convert to UTF-32 when a wide character is present (they also use 2 byte characters when that is sufficient) ... I happen to know this fa
by upofadown 11y ago
>Recent versions only convert to UTF-32 when a wide character is present (they also use 2 byte characters when that is sufficient) ...
I happen to know this fact. Are you really asking that everyone that comments on a language acknowledge all the possible implementation details? I at no point complained about the memory required to hold strings in CPython so I can't really understand why you would bring this up.
- maxerickson 11y agoBecause someone else reading "converting everything to UTF-32" might not be aware of the nuance. That's all.
- teach 11y agoI'm a casual user of Python 2, and I certainly didn't know this, so I appreciated the clarification.
- upofadown 11y agoSorry for the snark but this has become a trigger for me. Every time anyone disagrees with the way Py3 does Unicode someone will immediately assume that that person is just confused about the implementation.