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

0x and 0b case #102

Open
PhilipYip1988 opened this issue Oct 2, 2023 · 0 comments
Open

0x and 0b case #102

PhilipYip1988 opened this issue Oct 2, 2023 · 0 comments

Comments

@PhilipYip1988
Copy link

blue seems to be inconsistent to the Python interpreter for hex values. For example:

hex(2880744330)

returns:

0xabb4ab8a

Using blue on:

num1 = 0xabb4ab8a
num2 = 0xABB4AB8A
num3 = 0Xabb4ab8a 
num4 = 0XABB4AB8A

Gives:

num1 = 0xABB4AB8A
num2 = 0xABB4AB8A
num3 = 0xABB4AB8A 
num4 = 0xABB4AB8A

Python preferences lowercase hexadecimal because the upper case variations B and 8 look similar and A and 4 look similar increasing the chances of a transcription error:

blue_hex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant