A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2014-January/131650.html below:

[Python-Dev] PEP 461 - Adding % and {} formatting to bytes

[Python-Dev] PEP 461 - Adding % and {} formatting to bytes [Python-Dev] PEP 461 - Adding % and {} formatting to bytesSteven D'Aprano steve at pearwood.info
Wed Jan 15 23:00:37 CET 2014
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
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4