2 ms·
In the most recent version of Python, the implementation representation is a run-time detail, not compile-time. If you use ASCII then it's a one byte encoding.
by dalke 14y ago
In the most recent version of Python, the implementation representation is a run-time detail, not compile-time.
If you use ASCII then it's a one byte encoding. Most non-ASCII Unicode strings will have a two byte encoding, and if more than the Basic Multilingual Plane is needed, then Python will switch to a four byte encoding.