On Wed, Nov 12, 2008, Mark Dickinson wrote: > On Wed, Nov 12, 2008 at 3:15 PM, Antoine Pitrou <[EMAIL PROTECTED]> wrote: >> >> As for numbits, I think it should be a method, because while it's >> very fast for the current implementation of longs, it could be longer >> to calculate for a long implementation using something other than a >> power-of-2 base. > > Right: numbits is only a natural property of a *binary* integer. > > On the other hand, I can't realistically see Python ever adopting a > non power-of-two based implementation.
What do you call Decimal? ;-) -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "It is easier to optimize correct code than to correct optimized code." --Bill Harlan _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com