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

Function: srepr does not include assumptions #15938

Open
cklb opened this issue Feb 7, 2019 · 0 comments
Open

Function: srepr does not include assumptions #15938

cklb opened this issue Feb 7, 2019 · 0 comments

Comments

@cklb
Copy link

cklb commented Feb 7, 2019

Similar to PR #8819 which added support for assumptions in Symbol, the same ability would be really helpful for Function. If I understand #6494 correctly, Assumptions themselves should work for Function since 6b5a397.

Sadly, currently the following assertion fails:

x = Function('x', negative=0, integer=1)
assert eval(srepr(x)) == x

If I correctly understand the changes in #8819, _print_FunctionClass in printing/repr.py has to extended to provide these information.

If someone could provide a little insight to the involved assumptions system I would happily try to add the missing lines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants