Re: [sage-devel] Python3 and super()

2017-11-17 Thread Eric Gourgoulhon
Thanks Jeroen for your answer. 
Accordingly, I am keeping the Python-2 way. 

Best regards,

Eric.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


[sage-devel] Re: Pattern matching in Sage

2017-11-17 Thread Eric Gourgoulhon
Le dimanche 12 novembre 2017 16:04:38 UTC+1, Eric Gourgoulhon a écrit :
>
>
> Yes for sure, I will rewrite it using the expression tree walker, but in 
> another ticket. 
>

This is now  #24232 . This ticket 
rebases all simplifications in calculus on manifolds on direct 
manipulations of the expression tree, by subclassing ExpressionTreeWalker 
.
 


Eric.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


[sage-devel] Re: Pattern matching in Sage

2017-11-17 Thread rjf
It includes this probably bad idea ---
"Often, tree-walkers would prefer to see divisions instead of 
multiplications and negative exponents"

which means that a programmer may have to write the same code twice.
Example:  Once for exp(-x) and once for 1/exp(x).  or   for 2^(-x),   or  
even 2^n for 
possibly negative n.
RJF


On Friday, November 17, 2017 at 3:24:20 AM UTC-8, Eric Gourgoulhon wrote:
>
> Le dimanche 12 novembre 2017 16:04:38 UTC+1, Eric Gourgoulhon a écrit :
>>
>>
>> Yes for sure, I will rewrite it using the expression tree walker, but in 
>> another ticket. 
>>
>
> This is now  #24232 . This ticket 
> rebases all simplifications in calculus on manifolds on direct 
> manipulations of the expression tree, by subclassing ExpressionTreeWalker 
> .
>  
>
>
> Eric.
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.