using 0x1 << i where i is large HELP!!!

William Tanksley wtanksle at dolphin.openprojects.net
Tue Oct 17 21:02:54 EDT 2000


On Tue, 17 Oct 2000 20:52:32 -0400, Mark Cunningham wrote:
>why is it in this loop:
>for i in range(64)
>    print (0x1L << i)
>becomes 0 and stays 0 for i >32??????

That's not what happens on 1.5.2 or 2.0; what version are you using?

-- 
-William "Billy" Tanksley



More information about the Python-list mailing list