[Python-Dev] Python Language Summit EuroPython 2010 (original) (raw)
Eric Smith eric at trueblade.com
Sun Jul 25 19:13:14 CEST 2010
- Previous message: [Python-Dev] Python Language Summit EuroPython 2010
- Next message: [Python-Dev] Python Language Summit EuroPython 2010
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message: [Python-Dev] Python Language Summit EuroPython 2010
- Next message: [Python-Dev] Python Language Summit EuroPython 2010
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]