[Python-3000] Should PyString (new bytes type) accept strings with encoding?
Guido van Rossum
guido at python.org
Mon Oct 15 18:59:30 CEST 2007
Correct. Sorry. Here's an improved table that I'm also adding to the PEP:
C name | 2.x repr | 3.0a1 repr | 3.0a2 repr
-------------+-------------+------------+-------------------
PyUnicode | unicode u"" | str "" | str ""
PyString | str "" | str8 s"" | bytes b""
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-------------+-------------+------------+-------------------
--Guido
On 10/15/07, Steven Bethard <steven.bethard at gmail.com> wrote:
>
> On 10/15/07, Guido van Rossum <guido at python.org> wrote:
> > C name | 2.x | 3.0a1 | 3.0a2 |
> > ----------+--------------+------------+---------------------+
> > PyUnicode | unicode u"" | str "" | str "" |
> > PyString | str "" | str8 s"" | bytes "" |
> > PyBytes | N/A | bytes b"" | buffer buffer(b"") |
> > ----------+--------------+------------+---------------------+
>
> That "" beside bytes in the 3.0a2 column should be b"" (that is, with
> a "b" prefix), right?
>
> STeVe
> --
> I'm not *in*-sane. Indeed, I am so far *out* of sane that you appear a
> tiny blip on the distant coast of sanity.
> --- Bucky Katt, Get Fuzzy
>
--
--Guido van Rossum (home page: http://www.python.org/~guido/)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-3000/attachments/20071015/65f4d859/attachment-0001.htm
More information about the Python-3000
mailing list