[Python-Dev] PEP 461 - Adding % and {} formatting to bytes (original) (raw)
Ethan Furman ethan at stoneleaf.us
Wed Jan 15 17:20:06 CET 2014
- Previous message: [Python-Dev] PEP 461 - Adding % and {} formatting to bytes
- Next message: [Python-Dev] PEP 461 - Adding % and {} formatting to bytes
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 01/15/2014 08:04 AM, Antoine Pitrou wrote:
On Wed, 15 Jan 2014 15:47:43 +0000 (UTC) Neil Schemenauer <nas at arctrix.com> wrote:
Objects that implement str can also implement bytes if they can guarantee that ASCII characters are always returned, no matter what the value I think that's a slippery slope. bytes should mean that the object has a well-known bytes equivalent or encoding, not that its str happens to be pure ASCII.
Agreed.
--
Ethan
- Previous message: [Python-Dev] PEP 461 - Adding % and {} formatting to bytes
- Next message: [Python-Dev] PEP 461 - Adding % and {} formatting to bytes
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]