Feedback on lowercase \U
, \u
, \x
escapes introduced in 23.1 preview style #2916
#3568
Labels
C: preview style
Issues with the preview and unstable style. Add the name of the responsible feature in the title.
T: style
What do we want Blackened code to look like?
I'm not sure if lowercase is the better decision, so I'm filing this feedback for discussion.
Reasons to favor lowercase:
repr()
uses lowercases:I sampled 500K files from our codebase, lowercase is bit more popular (the count below is the total number escape sequences in strings):
\x
escapes:\u
escapes:(This might actually be a reason to not have a preference, since this is polarized.)
Reasons to favor uppercase:
\x
escapes, Black already uses uppercase for hex numbers:0xEF
, so this will be consistent with Black itself.I personally think the uppercase reasons are stronger.
The text was updated successfully, but these errors were encountered: