You can use sympy.core.symbol.Str. But be aware that sympify() will still convert strings into Symbol.
Aaron Meurer On Fri, Dec 6, 2024 at 11:14 AM Paul Royik <[email protected]> wrote: > > For consistency I need to define a class that extends the Basic class, but > whose args can contain str. > > What is the best way to do this? > > -- > You received this message because you are subscribed to the Google Groups > "sympy" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion visit > https://groups.google.com/d/msgid/sympy/a1599f30-e192-45dd-a632-1b0b626219e8n%40googlegroups.com. -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/sympy/CAKgW%3D6J5L%2BhaLdZUApLkXsoHBJrHiW%2BXrtahCvyWPsVE7VPKVQ%40mail.gmail.com.
