[issue11396] add format handler to bytes object

2011-03-04 Thread Eric Smith
Eric Smith added the comment: I found part of the discussion I was looking for: http://mail.python.org/pipermail/python-dev/2010-July/102252.html -- status: open -> closed ___ Python tracker __

[issue11396] add format handler to bytes object

2011-03-04 Thread nestor
nestor added the comment: My search fu has failed me this time. This is indeed a duplicate of issue 3982. I think the issue is real and not going to go away, but finding a beautiful solution has been elusive so far. -- resolution: -> duplicate ___

[issue11396] add format handler to bytes object

2011-03-04 Thread Eric Smith
Eric Smith added the comment: There have been a number of discussions about this, but no concrete proposal. The last one I recall was to add a __bformat__ method, but I couldn't find the email trail just now. See also issue 3982. -- nosy: +eric.smith

[issue11396] add format handler to bytes object

2011-03-04 Thread nestor
New submission from nestor : 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 a