On 3/26/07, David Roe <[EMAIL PROTECTED]> wrote:
>
> Two things.  First, order of operations is not what I would expect:
> your first code is equivalent to
> sage: 1 << (3 + 1.2).

Yeah, I would thingk that shifting take precedence over addition...
But that's another matter.

My main beef is witht the segmentation fault, though. In python you
simply get a TypeError.
{{{
In [1]: 1<<3 +1.2
TypeError: unsupported operand type(s) for <<: 'int' and 'float'
}}}

Shouldn't it be the same for sage?

didier

--~--~---------~--~----~------------~-------~--~----~
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-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to