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/2010-July/102339.html below:

[Python-Dev] Python Language Summit EuroPython 2010

[Python-Dev] Python Language Summit EuroPython 2010 [Python-Dev] Python Language Summit EuroPython 2010Eric Smith eric at trueblade.com
Sun Jul 25 19:13:14 CEST 2010
On 7/23/10 2:44 AM, Guido van Rossum wrote:
> Indeed, we meant b'...{}...{}...'.format(x, y). The problem is that it
> can't invoke x.__format__() or y.__format__() since those will return
> text strings instead of bytes. A proposed solution was to try
> x.__bformat__() etc. Another proposed solution was to limit x and y to
> a small set of common types and hard-code their meanings (e.g.
> numbers, bytes, and dates).

If there were an __bformat__ method, what would object.__bformat__() return?

-- 
Eric.
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