[Python-Dev] PEP 461 - Adding % and {} formatting to bytes (original) (raw)
Brett Cannon brett at python.org
Wed Jan 15 23:22:10 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 Wed, Jan 15, 2014 at 5:00 PM, Steven D'Aprano <steve at pearwood.info>wrote:
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
If we are going the route of a new magic method then ascii or bytes_format get my vote as long as they only return bytes (I see no need to abbreviate to bformat or formatb when we have method names as long as text_signature now). -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20140115/51bcde5b/attachment.html>
- 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 ]