[Python-3000] Does bytes() need to support bytes(<str>, <encoding>)?

Barry Warsaw barry at python.org
Tue Aug 28 13:40:23 CEST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Aug 27, 2007, at 11:20 PM, Guido van Rossum wrote:

> But I don't see the point of defaulting to raw-unicode-escape --
> what's the use case for that? I think you should just explicitly say
> s.encode('raw-unicode-escape') where you need that. Any reason you
> can't?

Nope.  So what would bytes(s) do?

- -Barry

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iQCVAwUBRtQJp3EjvBPtnXfVAQIh8AP+KFlZjz8sF40L/6AKZNYiOHn48HBitV8a
29Blv/JhTJlt7ZLEypm+SbudCfRmQTnUoBPfvTxezKhjHzaffaZyjqB308VlPqxv
nv3aTGJvxrQNDzJT1GeltddZj/GBG7Pk5ZpsjjejROe0OGHyGwpWXt0py6tfDED/
2Dk9Fdp8zCU=
=ESMM
-----END PGP SIGNATURE-----


More information about the Python-3000 mailing list