This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients christian.heimes, fredrikj, mark.dickinson
Date 2008-03-27.00:43:15
SpamBayes Score 0.23838079
Marked as misclassified No
Message-id <1206578596.92.0.378198420438.issue2487@psf.upfronthosting.co.za>
In-reply-to
Content
There are similar problems with integer shifts.  In the trunk:

>>> 1>>(2**40)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OverflowError: long int too large to convert to int

and in Python 3.0:

>>> 1>>(2**40)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OverflowError: Python int too large to convert to C long

These should probably by fixed, too, though at least the error
message is clear.

What should 1<<(2**31) do?
History
Date User Action Args
2008-03-27 00:43:17mark.dickinsonsetspambayes_score: 0.238381 -> 0.23838079
recipients: + mark.dickinson, christian.heimes, fredrikj
2008-03-27 00:43:16mark.dickinsonsetspambayes_score: 0.238381 -> 0.238381
messageid: <1206578596.92.0.378198420438.issue2487@psf.upfronthosting.co.za>
2008-03-27 00:43:16mark.dickinsonlinkissue2487 messages
2008-03-27 00:43:16mark.dickinsoncreate