William On Oct 30, 5:26 pm, William Stein <[email protected]> wrote: > // is in Python 2.x for integer quotient.
Ouch. I misread a webpage, badly. I guess this quote from the Python website answers the original question: "Because of severe backwards compatibility issues, not to mention a major flamewar on c.l.py, we propose the following transitional measures (starting with Python 2.2):" www.python.org/dev/peps/pep-0238/ > I would to clarify something. When you wrote above that the reason we > don't have / being int floor division by default is "Efficiency." Here I was thinking *only* about why the Sage interpreter doesn't automatically cast, as the proposer had suggested, not to the use of floats per se. I was actually surprised by the performance of float(len(E))/float(len(S)) at first, and reasoned it was due to overhead from the interpreter. If I'm wrong here, too, please do correct me... john -- You received this message because you are subscribed to the Google Groups "sage-edu" 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/sage-edu?hl=en.
