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

Replace Class level variables with metaclass implementations #62

Open
Bhargavasomu opened this issue Mar 7, 2019 · 0 comments
Open

Comments

@Bhargavasomu
Copy link
Contributor

What is wrong?

This snippet of code here is a class level variable and it would be better to define it using a metaclass.

self.FQP_corresponding_FQ_class = type(
"FQP_corresponding_FQ_class",
(FQ,),
{'field_modulus': self.field_modulus}
)

How can it be fixed

#61 (comment)

pacrob pushed a commit to pacrob/py_ecc that referenced this issue Oct 29, 2023
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