Usually __truediv__ = __div__ and __rtruediv__ = __rdiv__ does the trick.
But I should note that I agree with Mario that defining division on
permutations is a bad idea.

Aaron Meurer

On Sep 11, 2012, at 12:56 AM, smichr <[email protected]> wrote:

I've defined `__div__` for a Permutationa so that 1/Permutation gives
`Permutation**-1` but Py 3 doesn't like this:

http://travis-ci.org/#!/sympy/sympy/jobs/2404824

I've tried unsuccessfully to define truediv and rtruediv in the last two
commits of https://github.com/sympy/sympy/pull/1508...does anyone have
ideas how to make this work?

/c

-- 
You received this message because you are subscribed to the Google Groups
"sympy" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/sympy/-/_-WfbazitmYJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to