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

Add setattr and fix getattr to PyTypeId struct #84

Merged
merged 6 commits into from
Oct 31, 2022

Conversation

entropidelic
Copy link
Collaborator

@entropidelic entropidelic commented Oct 28, 2022

This PR adds support for assigning PyTypeIds fields. This is useful when assigning struct fields inside a hint.
It also corrects the __getattr__ method.

With this fixes, the following tests run:

  • pow
  • compute_slope
  • ec_double
  • uint256_unsigned_div_rem
  • uint256_sqrt

Note: If a field inside a struct is another struct and we want to assign a struct there, it would fail. It is not clear at the moment if this should be supported. See issue #86.

@entropidelic entropidelic marked this pull request as ready for review October 31, 2022 15:56
@pefontana pefontana merged commit 209c0f1 into main Oct 31, 2022
@pefontana pefontana deleted the add_setattr_to_pytypeid branch October 31, 2022 18:48
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

Successfully merging this pull request may close these issues.

4 participants