diff --git a/pep-3137.txt b/pep-3137.txt index d68b5f217..dee7a06ae 100644 --- a/pep-3137.txt +++ b/pep-3137.txt @@ -73,6 +73,22 @@ so we can reuse its name for the mutable bytes type. While eventually it makes sense to change the C API names, this PEP maintains the old C API names, which should be familiar to all. +Summary +------- + +Here's a simple ASCII-art table summarizing the type names in various +Python versions:: + + +--------------+-------------+------------+--------------------+ + | C name | 2.x repr | 3.0a1 repr | 3.0a2 repr | + +--------------+-------------+------------+--------------------+ + | PyUnicode | unicode u"" | str "" | str "" | + | PyString | str "" | str8 s"" | bytes "" | + | PyBytes | N/A | bytes b"" | buffer buffer(b"") | + | PyBuffer | buffer N/A | buffer N/A | N/A | + | PyMemoryView | N/A | N/A | memoryview N/A | + +--------------+-------------+------------+--------------------+ + Literal Notations =================