]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-98836: Extend PyUnicode_FromFormat() (GH-98838)
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 21 May 2023 21:32:39 +0000 (00:32 +0300)
committerGitHub <noreply@github.com>
Sun, 21 May 2023 21:32:39 +0000 (00:32 +0300)
commitf3466bc04008660c4a5c3ed6f70144f138ae2e7f
tree3aada373c1a064f47e8273f30439c5fcea1d7e3a
parent6ba8406cb6e656e47e908f8c7354e07ed0f2d774
gh-98836: Extend PyUnicode_FromFormat() (GH-98838)

* Support for conversion specifiers o (octal) and X (uppercase hexadecimal).
* Support for length modifiers j (intmax_t) and t (ptrdiff_t).
* Length modifiers are now applied to all integer conversions.
* Support for wchar_t C strings (%ls and %lV).
* Support for variable width and precision (*).
* Support for flag - (left alignment).
Doc/c-api/unicode.rst
Doc/whatsnew/3.12.rst
Lib/test/test_capi/test_unicode.py
Misc/NEWS.d/next/C API/2022-10-29-10-13-20.gh-issue-98836.Cy5h_z.rst [new file with mode: 0644]
Modules/_ssl.c
Modules/_testcapi/unicode.c
Modules/selectmodule.c
Modules/socketmodule.c
Objects/unicodeobject.c
Parser/tokenizer.c