Add table of old and new names for affected types.
This commit is contained in:
parent
3454fb4ec8
commit
024b5a372d
16
pep-3137.txt
16
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
|
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.
|
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
|
Literal Notations
|
||||||
=================
|
=================
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue