The exact code being used is:

class noevalAdd(sympy.Add):
    @classmethod
    def eval(cls, arg):
        return


On 2 October 2013 02:26, Aaron Meurer <asmeu...@gmail.com> wrote:

> This is probably an instance of the sort of thing I mentioned earlier in
> this thread where some classes do not play nicely with potential
> subclasses. What is the exact code you are using for noevalAdd?
>
> Aaron Meurer
>
> On Oct 1, 2013, at 3:45 AM, Ben Lucato <ben.luc...@gmail.com> wrote:
>
> I have been doing some more work on this, and wanted to further include
> sympy.Add, sympy.Mul and sympy.Pow, however it doesn't work the same.
>
> For instance, doing noevalAdd(1, 2) returns 3, whereas sympy.Add(1, 2,
> evaluate=False) returns 1 + 2.
>
>
> Is there a way to do the same thing for these 'core' classes?
>
> --
> 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 sympy+unsubscr...@googlegroups.com.
>
> To post to this group, send email to sympy@googlegroups.com.
> Visit this group at http://groups.google.com/group/sympy.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "sympy" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/sympy/zilEXwN26so/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> sympy+unsubscr...@googlegroups.com.
> To post to this group, send email to sympy@googlegroups.com.
> Visit this group at http://groups.google.com/group/sympy.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 


Ben Lucato
----------------------------------------------------------------------------------
Phone: +61 400 159 632 | Email: ben.luc...@gmail.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 sympy+unsubscr...@googlegroups.com.
To post to this group, send email to sympy@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to