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 native int to_bytes / from_bytes instead of FixedInt #23

Closed
kodonnell opened this issue Jan 10, 2021 · 1 comment
Closed

Use native int to_bytes / from_bytes instead of FixedInt #23

kodonnell opened this issue Jan 10, 2021 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@kodonnell
Copy link
Collaborator

As per title. Won't change functionality, just removes a dependency.

E.g.

>>> x = (-1).to_bytes(2, 'little', signed=True)
>>> x
b'\xff\xff'
>>> int.from_bytes(x, byteorder='little', signed=True)
-1
>>> int.from_bytes(x, byteorder='little', signed=False)
65535
@kodonnell kodonnell added enhancement New feature or request good first issue Good for newcomers labels Jan 10, 2021
@kodonnell
Copy link
Collaborator Author

Closed by #33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant