Skip to content

PyUnicode_FromFormat(): add %X format #95849

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
philg314 opened this issue Aug 10, 2022 · 1 comment
Open

PyUnicode_FromFormat(): add %X format #95849

philg314 opened this issue Aug 10, 2022 · 1 comment
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) type-feature A feature request or enhancement

Comments

@philg314
Copy link
Contributor

Feature or enhancement

Add %X (uppercase hex) format to PyUnicode_FromFormat().

Pitch

%X's omission is not intentional, it was just not needed so far. There are many cases where it would be useful, for example the canonical representation of Unicode code points (f"U+{code:0>4X}").

Previous discussion

https://discuss.python.org/t/pyunicode-fromformat-add-x

@philg314 philg314 added the type-feature A feature request or enhancement label Aug 10, 2022
@serhiy-storchaka
Copy link
Member

See also more generic #98836.

@iritkatriel iritkatriel added the interpreter-core (Objects, Python, Grammar, and Parser dirs) label Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

3 participants