This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Add width and precision formatters to PyBytes_FromFormatV()
Type: Stage:
Components: Interpreter Core Versions: Python 3.3
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: vstinner Nosy List: vstinner, ysj.ray
Priority: normal Keywords: patch

Created on 2011-03-17 04:39 by ysj.ray, last changed 2022-04-11 14:57 by admin.

Files
File name Uploaded Description Edit
pybytes_fromformatv.diff ysj.ray, 2011-03-17 04:39 review
Messages (2)
msg131218 - (view) Author: ysj.ray (ysj.ray) Date: 2011-03-17 04:39
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.
msg220914 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2014-06-17 23:38
Can we have a patch review please.
History
Date User Action Args
2022-04-11 14:57:14adminsetgithub: 55789
2019-03-15 23:27:11BreamoreBoysetnosy: - BreamoreBoy
2014-06-17 23:38:22BreamoreBoysetnosy: + BreamoreBoy
messages: + msg220914
2011-03-17 12:25:03amaury.forgeotdarcsetassignee: vstinner

nosy: + vstinner
2011-03-17 04:39:48ysj.raycreate