Issue517237

classification
Title: Binary ops with int and long fail
Type: Severity: normal
Components: Core Versions:
Milestone:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: bckfnn Nosy List: bckfnn, cliechti
Priority: normal Keywords:

Created on 2002-02-13.23:03:10 by cliechti, last changed 2002-03-11.13:59:19 by bckfnn.

Messages
msg575 (view) Author: Chris Liechti (cliechti) Date: 2002-02-13.23:03:10
>>> 5&7L
should result in 5L (CPython result) but it 
raises:
TypeError: __and__ nor __rand__ defined for these 
operands

this applies to binary operations:
& (AND)
| 
(OR)
^ (XOR)

The other way round it works (7L&5 -> 5) - so symmetry 
is missing.
msg576 (view) Author: Finn Bock (bckfnn) Date: 2002-03-11.13:54:18
Logged In: YES 
user_id=4201

Added as test357
msg577 (view) Author: Finn Bock (bckfnn) Date: 2002-03-11.13:59:19
Logged In: YES 
user_id=4201

Fixed in PyLong.java: 2.15;
History
Date User Action Args
2002-02-13 23:03:10cliechticreate