This is what `epath` is made for, I believe. I have not spent enough time 
with it to provide much help, however -- only a pointer.

/c

On Friday, March 11, 2022 at 11:32:41 AM UTC-6 [email protected] wrote:

>
> Hello,
> I would like to modify a part of an expression so as to obtain:
> `EXPR.args[2].args[1] = MODIFIED_SUB_EXPRESSION`
>
> How can I do this? The elements returned by "args" are immutable tuples, I 
> cannot edit them in place and I don't know how to create a modified copy.
>
> Thank you for your help,
> Olivier
>
>
>

-- 
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 on the web visit 
https://groups.google.com/d/msgid/sympy/50616074-e0da-4efc-bf62-b8154499b5e3n%40googlegroups.com.

Reply via email to