[Python-Dev] RFC: PEP 460: Add bytes % args and bytes.format(args) to Python 3.5

Juraj Sukop juraj.sukop at gmail.com
Sat Jan 11 13:15:46 CET 2014


On Sat, Jan 11, 2014 at 5:14 AM, Cameron Simpson <cs at zip.com.au> wrote:

>
> Hi Juraj,
>

Hello Cameron.


>   data = b' '.join( bytify( [ 10, 0, obj, binary_image_data, ... ] ) )
>

Thanks for the suggestion! The problem with "bytify" is that some items
might require different formatting than other items. For example, in
"Cross-Reference Table" there are three different formats: non-padded
integer ("1"), 10- and 15digit integer, ("0000000003", "65535").
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20140111/f2864b85/attachment.html>


More information about the Python-Dev mailing list