> cos is different from max. cos is in a Python library (math for
> instance) while max is a builtin.

We preparse integers, Vincent. We already change Python's default
behaviour. Look how schizophrenic we are about users:
- Volker said that it was a "breach of Sage's mission statement" to
not output pictures of objects that can esily be drawn, because users
expect it.
- We preparse integers so that 3/2 is not 1
- sqrt(2) is symbolic
- max(cos(x),0) is cos(x) because we cannot override Python builtins
- var('x') is thought to be bad because "we cannot expect everybody to
understand the difference between a Python variable and a symbolic
variable

It's like for everything we do we have a different picture of the end
user in mind. To me it would make sense if we said that global
namespace functions can be slow but are safe, and that if you need
more speed then you must load and use the appropriate functions.

Nathann

-- 
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 http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to