Message837

Author nobody
Recipients
Date 2003-05-05.18:19:42
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
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.
History
Date User Action Args
2008-02-20 17:17:15adminlinkissue732839 messages
2008-02-20 17:17:15admincreate