shift operators?

Aahz Maruch aahz at panix.com
Mon Jan 7 13:35:32 EST 2002


In article <7xr8p26mlp.fsf at ruckus.brouhaha.com>,
Paul Rubin  <phr-n2002a at nightsong.com> wrote:
>Andrew Koenig <ark at research.att.com> writes:
>>
>> Is it just backward compatibility that keeps 1<<40 from yielding
>> 1099511627776L as well?
>
>I think people do shift operations expecting 32-bit arithmetic.

Except when they expect 64-bit arithmetic.
-- 
                      --- Aahz  <*>  (Copyright 2002 by aahz at pobox.com)

Hugs and backrubs -- I break Rule 6                 http://www.rahul.net/aahz/
Androgynous poly kinky vanilla queer het Pythonista   

"There are time when effort is important and necessary, but this should
not be taken as any kind of moral imperative."  --jdecker



More information about the Python-list mailing list