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

Support creating PyLong from arbitrary sized integers #310

Open
gatesn opened this issue Feb 24, 2024 · 0 comments
Open

Support creating PyLong from arbitrary sized integers #310

gatesn opened this issue Feb 24, 2024 · 0 comments

Comments

@gatesn
Copy link
Contributor

gatesn commented Feb 24, 2024

Using the int.from_bytes() function to construct an integer from a base-256 byte array.

See https://docs.python.org/3/c-api/long.html#c.PyLong_FromString

https://github.com/fulcrum-so/ziggy-pydust/blob/develop/pydust/src/types/long.zig#L33-L36

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