[issue28415] PyUnicode_FromFormat integer format handling different from printf about zeropad

2017-04-26 Thread Xiang Zhang
Changes by Xiang Zhang : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed versions: -Python 2.7, Python 3.5, Python 3.6 ___ Python tracker

[issue28415] PyUnicode_FromFormat integer format handling different from printf about zeropad

2017-04-26 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 88c38b32b761cb566759b8ad96704bff590a1de9 by Xiang Zhang (Louie Lu) in branch 'master': bpo-28415: Note 0 conversion different between Python and C (#885) https://github.com/python/cpython/commit/88c38b32b761cb566759b8ad96704bff590a1de9 --

[issue28415] PyUnicode_FromFormat integer format handling different from printf about zeropad

2017-04-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: (Response to what I believe is latest patch.) In msg278666, my two suggestions were 'either...or', not both. The list came from Antti's msg278528, but the correct list for Python appears to be different, and different for bytes and unicode. When I made the

[issue28415] PyUnicode_FromFormat integer format handling different from printf about zeropad

2017-03-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: *Way* too wordy. In msg278666, I suggested minimal and terse alternatives. a. /exactly/nearly/ b. add "except that a 0 conversion flag is not ignored when a precision is given for d, i, o, u, x and X conversion types" --

[issue28415] PyUnicode_FromFormat integer format handling different from printf about zeropad

2017-03-29 Thread Xiang Zhang
Changes by Xiang Zhang : -- versions: +Python 2.7 ___ Python tracker ___ ___

[issue28415] PyUnicode_FromFormat integer format handling different from printf about zeropad

2017-03-29 Thread Louie Lu
Louie Lu added the comment: Add a note block under Py*_FromFormat in unicode.rst and bytes.rst. Could Xiang or Terry help to review? Thanks. -- nosy: +louielu ___ Python tracker

[issue28415] PyUnicode_FromFormat integer format handling different from printf about zeropad

2017-03-29 Thread Louie Lu
Changes by Louie Lu : -- pull_requests: +787 ___ Python tracker ___ ___ Python-bugs-list

[issue28415] PyUnicode_FromFormat integer format handling different from printf about zeropad

2017-03-16 Thread Xiang Zhang
Changes by Xiang Zhang : -- keywords: +easy stage: -> needs patch ___ Python tracker ___

[issue28415] PyUnicode_FromFormat integer format handling different from printf about zeropad

2016-10-18 Thread Josh Rosenberg
Changes by Josh Rosenberg : -- title: PyUnicode_FromFromat interger format handling different from printf about zeropad -> PyUnicode_FromFormat integer format handling different from printf about zeropad ___ Python