[New-bugs-announce] [issue11580] Add width and precision formatters to PyBytes_FromFormatV()

Ray.Allen report at bugs.python.org
Thu Mar 17 05:39:50 CET 2011

New submission from Ray.Allen <ysj.ray at gmail.com>:

By working on some PyUnicode_FromFormatV() related issue(#7330, #10829), I found some same problems with PyBytes_FromFormatV(): It doesn't support width formatter for %u, %i, %x, %d, %s, also it doesn't support %lld and %llu.

Attached patch fix the problem:

Add width formatter for %u, %i, %x, %d
Add width and precision formatter for %s
Add %lld and %llu support.

It copies the same idea from #10829: add the parse_format_flags() function.

components: Interpreter Core
files: pybytes_fromformatv.diff
keywords: patch
messages: 131218
nosy: ysj.ray
priority: normal
severity: normal
status: open
title: Add width and precision formatters to PyBytes_FromFormatV()
versions: Python 3.3
Added file: http://bugs.python.org/file21261/pybytes_fromformatv.diff

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list