[Python-Dev] PEP 461 - Adding % and {} formatting to bytes (original) (raw)
Steven D'Aprano steve at pearwood.info
Wed Jan 15 23:00:37 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 Thu, Jan 16, 2014 at 10:55:31AM +1300, Greg Ewing wrote:
Neil Schemenauer wrote: >Objects that implement str can also implement bytes if they >can guarantee that ASCII characters are always returned,
_I think ascii would be a better name. I'd expect a method called bytes on an int to return some version of its binary value.
+1
-- Steven
- 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 ]