Skip to content

Sympy symbol names should not use '`' as context marks #1533

Description

@mmatera

Motivated by the good results obtained in using sympy lambdify for compiling expressions, I have been looking at the code that converts Mathics expression to sympy. One problem I found is that when I convert an expression to sympy, symbol and function names include the '' character, which in Mathics is used to split contexts. In the sympy side, it looks OK until we try to produce source code (for example, when we try to use ufuncify). Ideally, context in sympy variables should be separated by a harmless character like _`.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions