Correct. Sorry. Here's an improved table that I'm also adding to the PEP:<br><br><span style="font-family: courier new,monospace;"></span><span style="font-family: courier new,monospace;">C name | 2.x repr |
3.0a1 repr | 3.0a2 repr</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">-------------+-------------+------------+-------------------</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">PyUnicode | unicode u"" | str "" | str ""</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
PyString | str "" | str8 s"" | bytes b""</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">PyBytes | N/A | bytes b"" | buffer buffer(b"")
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">PyBuffer | buffer N/A | buffer N/A | N/A </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
PyMemoryView | N/A | N/A | memoryview N/A</span><span style="font-family: courier new,monospace;"> -------------+-------------+------------+-------------------</span><br style="font-family: courier new,monospace;">
<br>--Guido<br><br><div><span class="gmail_quote">On 10/15/07, <b class="gmail_sendername">Steven Bethard</b> <<a href="mailto:steven.bethard@gmail.com">steven.bethard@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 10/15/07, Guido van Rossum <<a href="mailto:guido@python.org">guido@python.org</a>> wrote:<br>> C name | 2.x | 3.0a1 | 3.0a2 |<br>> ----------+--------------+------------+---------------------+
<br>> PyUnicode | unicode u"" | str "" | str "" |<br>> PyString | str "" | str8 s"" | bytes "" |<br>> PyBytes | N/A | bytes b"" | buffer buffer(b"") |
<br>> ----------+--------------+------------+---------------------+<br><br>That "" beside bytes in the 3.0a2 column should be b"" (that is, with<br>a "b" prefix), right?<br><br>STeVe<br>--
<br>I'm not *in*-sane. Indeed, I am so far *out* of sane that you appear a<br>tiny blip on the distant coast of sanity.<br> --- Bucky Katt, Get Fuzzy<br></blockquote></div><br><br clear="all"><br>-- <br>--Guido van Rossum (home page:
<a href="http://www.python.org/~guido/">http://www.python.org/~guido/</a>)