Francisco Martín Brugué added the comment:
I Victor you were so fast, I started with one patch also in bool (at least the
place was right). The problem is that I was getting some extrage (for me at
least). As far I hat:
def test_shifted_true(self):
with self.assertRaises(ValueError):
True << -1
self.assertIs(True << 0, 1)
self.assertIs(True << 1, 2)
self.assertEqual(True << 63, 1 << 63)
self.assertIs(True << 63, 1 << 63)
And I'm getting:
======================================================================
FAIL: test_shifted_true (test.test_bool.BoolTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/ci/Prog/cpython/src/Lib/test/test_bool.py", line 349, in
test_shifted_true
self.assertIs(True << 63, 1 << 63)
AssertionError: 9223372036854775808 is not 9223372036854775808
----------------------------------------------------------------------
That's:
./python --version
Python 3.5.0a0
>>> type(True<<63)
<class 'int'>
>>> type(1<<63)
<class 'int'>
hg tip
changeset: 90664:4e33c343a264
What I'm doing wrong?
That's:
./python --version
Python 3.5.0a0
>>> type(True<<63)
<class 'int'>
>>> type(1<<63)
<class 'int'>
hg tip
changeset: 90664:4e33c343a264
What I was doing wrong?
Thanks in advance!
francis
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue21422>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com