Does Python need a '>>>' operator?

David Eppstein eppstein at ics.uci.edu
Mon Apr 15 17:38:28 EDT 2002


In article <m3662sk6xo.fsf at mira.informatik.hu-berlin.de>,
 martin at v.loewis.de (Martin v. Loewis) wrote:

> Yes, but this notion is inherently bound with the notion of "size" of
> an integer, atleast in the signed variant (for unsigned integers,
> there is no need for twos complement). If you create the complement,
> you have to know how many bits to invert.

Not if you have a representation which (when interpreted as a bitvector) 
allows bitvectors with infinitely many one-bits.  Which in fact is what 
we have with Python's long integer type.

-- 
David Eppstein       UC Irvine Dept. of Information & Computer Science
eppstein at ics.uci.edu http://www.ics.uci.edu/~eppstein/



More information about the Python-list mailing list