Updates:
        Cc: ondrej.certik Ronan.Lamy

Comment #10 on issue 2125 by asmeurer: Using Integers as python slices.
http://code.google.com/p/sympy/issues/detail?id=2125

I think the whole point of using SymPy Integers instead of Python ints is that you *can* do something like 1/2 and get a Rational instead of 0 or 0.5. The idea here (if I am not mistaken) is that it would be nice to also be able use those in the common places where int is used, so that you can completely replace ints with Integers. Now of course, it is understood that you will then have to sacrifice integer division (actually, you can still get it through S(1)//S(2), which is what you should be doing anyway considering Python 3), and that you will need to use .evalf() if you want an actual floating point number (in which case, again, a SymPy Real is going to be nicer than a Python float).

How do others feel about all of this, by the way?

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" 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-issues?hl=en.

Reply via email to