Skip to content
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

use lowercase letters for digits #1514

Closed
fametrano opened this issue Jun 22, 2020 · 1 comment
Closed

use lowercase letters for digits #1514

fametrano opened this issue Jun 22, 2020 · 1 comment
Labels
T: style What do we want Blackened code to look like?

Comments

@fametrano
Copy link

fametrano commented Jun 22, 2020

Black standardizes most numeric literals to use lowercase letters for the syntactic parts and uppercase letters for the digits themselves. The uppercase choice decreases readability for hexadecimal numbers, mostly because A is very similar to 4.
Please consider using lowercase letters for both the syntactic parts and the digits themselves.

0xAA44A4A4
vs
0xaa44a4a4

@fametrano fametrano added the T: style What do we want Blackened code to look like? label Jun 22, 2020
@fametrano fametrano changed the title usie lowercase letters for digits use lowercase letters for digits Jun 22, 2020
@zsol
Copy link
Collaborator

zsol commented Sep 18, 2020

#1692 is a duplicate of this one, but it has a bit more context and discussion, so closing this in favor of that.

@zsol zsol closed this as completed Sep 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T: style What do we want Blackened code to look like?
Projects
None yet
Development

No branches or pull requests

2 participants