-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
Closed as duplicate of#98836
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancementA feature request or enhancement
Description
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
encukou
Metadata
Metadata
Assignees
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancementA feature request or enhancement