String types in Python 3

Python 3.0 では bytes が immutable で、buffer が mutable だよという話. PEP 3137 を見ると以下のような記述があって、内部名と外部名の捩れっぷりに頭痛. もちろん str は PyUnicode です :-D

* bytes is an immutable array of bytes (PyString)
* buffer is a mutable array of bytes (PyBytes)
* memoryview is a bytes view on another object (PyMemory)