Message837
This code worked a while back:
x = -2
y = 0xffffffffL
x = x & y
With Jython 2.1, it generates a syntax
error:
Traceback (innermost last):
File "<console>", line 1, in ?
TypeError: __and__ nor __rand__ defined for
these operands
I can work around it in two different ways.
This is okay:
x = -2
y = 0xffffffffL
x = y & x // Order reversed
And so is this:
x = -2
y = 0xffffffffL
x = long (x) & y // Explicit convestion of int
to long
But neither seem like they *should* be
required. Is this new behavior intentional?
Or a bug?
E-mail me for details, if necessary:
mark.roulo@kla-tencor.com
Thanks,
Mark R.
|
|
Date |
User |
Action |
Args |
2008-02-20 17:17:15 | admin | link | issue732839 messages |
2008-02-20 17:17:15 | admin | create | |
|