3 ms·
Auch. Quite a few of these stem from the design mistake to allow cross-type equality tests combined with a hard headed effort to try to make it work. >>> 2 =
by toolslive 9y ago
Auch. Quite a few of these stem from the design mistake to allow cross-type equality tests combined with a hard headed effort to try to make it work.
>>> 2 == 2L
True
>>> hex(2) == hex(2L)
False
>>> type(2)
<type 'int'>
>>> type(2L)
<type 'long'>
>>>
- stephen82 9y agoTry the same with Python 3.x, it's an invalid syntax thanks to 'L'.