On Mar 26, 2007, at 6:57 PM, didier deshommes wrote:
>
> 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?
Absolutely. This is a bug.
David
--~--~---------~--~----~------------~-------~--~----~
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/
-~----------~----~----~----~------~----~------~--~---