GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
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?
to your account
>>> import gmpy2
>>> class A:
... def __mpz__(self): raise TypeError
>>> a = A()
** SEGFAULT **
gmpy2_cache.c : Fix issue aleaxit#173
- Fix segfault when objects have custom `__mpz__`, `__mpq__`,
`__mpfr__` or `__mpc__` methods raising errors.
- add doctests for these cases.
Same problem with __mpq__, __mpfr__ and __mpc__ functions.
All fixed in PR #174
Merge pull request #174 from vinklein/master
gmpy2_cache.c : Fix issue #173