Add table of old and new names for affected types.

This commit is contained in:
Guido van Rossum 2007-10-15 16:56:27 +00:00
parent 3454fb4ec8
commit 024b5a372d
1 changed files with 16 additions and 0 deletions

View File

@ -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
=================