3 ms·
It really is the hard way. For the curious, read through the comment here describing the data layout and invariants: https://github.com/python/cpython/blob/mas
by int_19h 10y ago
It really is the hard way. For the curious, read through the comment here describing the data layout and invariants:
https://github.com/python/cpython/blob/master/Include/unicodeobject.h#L213 https://github.com/python/cpython/blob/master/Include/unicod...