Long Shifty Bits

Marcin 'Qrczak' Kowalczyk qrczak at knm.org.pl
Tue Mar 6 14:14:50 EST 2001


Tue, 6 Mar 2001 10:50:21 -0800, Phlip <phlip_cpp at my-deja.com> pisze:

> I want this expression to make sense:
> 
>         x = 1L << 200

It does make sense. At least in Python 2.0 I get
1606938044258990275541962092341162602522202993782792835301376L
and Haskell gives the same answer so they are probably both right :-)

-- 
 __("<  Marcin Kowalczyk * qrczak at knm.org.pl http://qrczak.ids.net.pl/
 \__/
  ^^                      SYGNATURA ZASTĘPCZA
QRCZAK



More information about the Python-list mailing list