[Python-checkins] r58473 - peps/trunk/pep-3137.txt

guido.van.rossum python-checkins at python.org
Mon Oct 15 18:56:28 CEST 2007


Author: guido.van.rossum
Date: Mon Oct 15 18:56:27 2007
New Revision: 58473

Modified:
   peps/trunk/pep-3137.txt
Log:
Add table of old and new names for affected types.


Modified: peps/trunk/pep-3137.txt
==============================================================================
--- peps/trunk/pep-3137.txt	(original)
+++ peps/trunk/pep-3137.txt	Mon Oct 15 18:56:27 2007
@@ -73,6 +73,22 @@
 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
 =================
 


More information about the Python-checkins mailing list