>> On Wed, Feb 3, 2010 at 8:43 PM, <markus.proel...@ifm.com> wrote:
>>
>> Hello,
>>
>> the following operation seems strange to me
>>
>> >>> np.left_shift(2,-1)
>> 0
>>
>> I would have expected a right_shift by one.
>
> I wouldn't expect anything, the behavior is simply not defined.
But it would prevent a statement like
if x2 > 0 then
...
else
...
Markus
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion