Skip to content

Add SympyToPymbolicMapperWithSymbols - #303

Merged
inducer merged 2 commits into
inducer:mainfrom
alexfikl:sympy-to-pymbolic-symbols
Sep 4, 2026
Merged

Add SympyToPymbolicMapperWithSymbols#303
inducer merged 2 commits into
inducer:mainfrom
alexfikl:sympy-to-pymbolic-symbols

Conversation

@alexfikl

@alexfikl alexfikl commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

This is needed in #279 (mostly to move pi back from pymbolic).

PymbolicToSympyMapperWithSymbols also implements a special map_subscript, but that can't be unambiguously roundtripped, so I left it alone.

Comment thread sumpy/symbolic.py
@inducer
inducer enabled auto-merge (rebase) September 4, 2026 13:21
@inducer

inducer commented Sep 4, 2026

Copy link
Copy Markdown
Owner

Thx!

@inducer
inducer merged commit 0859787 into inducer:main Sep 4, 2026
9 checks passed
@alexfikl
alexfikl deleted the sympy-to-pymbolic-symbols branch September 4, 2026 13:33

@isuruf isuruf left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can rename Constant to NumberSymbol in symengine.py to match sympy. Then keep Constant as an alias.

@alexfikl

alexfikl commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator Author

We can rename Constant to NumberSymbol in symengine.py to match sympy. Then keep Constant as an alias.

I don't feel too strongly about that. It would be nice, for sure, but there will always be some mismatch between the two. Are you making a release for symengine 0.15? 😁

@isuruf

isuruf commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

Are you making a release for symengine 0.15? 😁

Yes, probably this weekend.

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.

3 participants