A possible way is this:
https://gist.github.com/Upabjojr/3718fd700f123fa899ee

Could this be useful if inserted to the API of *Basic*?

On Thursday, 10 September 2015 22:35:04 UTC+2, Aaron Meurer wrote:
>
> On Thu, Sep 10, 2015 at 6:47 AM, Francesco Bonazzi 
> <[email protected] <javascript:>> wrote: 
> > 
> > 
> >> What about if I add such options on this line: 
> >> 
> >> 
> >> 
> https://github.com/sympy/sympy/blob/d29f329b38cf3722518b14c0e131b0b1f36b9e37/sympy/core/basic.py#L653
>  
> >> 
> >> 
> >> Is it reasonable? 
> > 
> > 
> > I mean, making expr.args return a proxy of expr._args with such indexing 
> > options. Or better add a new method? 
>
> I would definitely be careful about the performance and memory usage 
> implications of making args not a tuple. 
>
> What you want to do should definitely be possible without modifying the 
> core. 
>
> Aaron Meurer 
>
> > 
> > -- 
> > 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] <javascript:>. 
> > To post to this group, send email to [email protected] 
> <javascript:>. 
> > Visit this group at http://groups.google.com/group/sympy. 
> > To view this discussion on the web visit 
> > 
> https://groups.google.com/d/msgid/sympy/e5936124-ad08-46e4-ae20-e6cac9fda563%40googlegroups.com.
>  
>
> > 
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/21e5ff28-42f6-4e28-b568-fce93be51c02%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to