We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Consider:
>>> from glasgow.support.bits import bits >>> some = bits("10001001011") >>> some[-1] 0 >>> some[-2] 0 >>> some[-5] 0
I think that for some[-1] you should get the most significant bit. For some[-2] the second most significant bit and so on...
some[-1]
some[-2]
It looks like an easy fix in support/bits.py - I will make a PR.
The text was updated successfully, but these errors were encountered:
support.bits: fix __getitem__ for negative keys
047ed15
Fixes #244
Successfully merging a pull request may close this issue.
Consider:
I think that for
some[-1]
you should get the most significant bit. Forsome[-2]
the second most significant bit and so on...It looks like an easy fix in support/bits.py - I will make a PR.
The text was updated successfully, but these errors were encountered: