There is wrapper class "Str" to convert string to sympy objects, that can 
be used for args

https://github.com/sympy/sympy/blob/e53690af7e57eeef7e8c6dea1521a4dc0024cf95/sympy/core/symbol.py#L26

But generally, it is fine to use "Symbol" because there is often no 
semantical difference between symbol and strings, for use of names.
but adding/multiplying the symbols doesn't make sense for such usage.
On Sunday, December 8, 2024 at 12:07:46 AM UTC+1 [email protected] wrote:

> 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/ad0720ed-0796-4e5c-a7d9-ca7925e74a4fn%40googlegroups.com.

Reply via email to