[New-bugs-announce] [issue11396] add format handler to bytes object

nestor report at bugs.python.org
Fri Mar 4 16:18:52 CET 2011


New submission from nestor <nestornissen at gmail.com>:

Many programs written for Python 2.x use simple string interpolation to create byte strings with specific layout, this is gone in 3.x. Is it possible to support the format method but maybe only supporting field names like '{}' '{1}{2}' '{name}' and not conversion and formatting for the bytes type?

Examples:
http://mail.python.org/pipermail/python-list/2011-March/1267308.html

and the "get_current_url" function at this post:
http://lucumr.pocoo.org/2010/5/25/wsgi-on-python-3/

----------
messages: 130055
nosy: nestor
priority: normal
severity: normal
status: open
title: add format handler to bytes object
type: feature request
versions: Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11396>
_______________________________________


More information about the New-bugs-announce mailing list