Combinatorics

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Tue Feb 12 06:59:09 EST 2008


On Tue, 12 Feb 2008 10:38:53 +0100, pataphor wrote:

> On Mon, 11 Feb 2008 23:52:31 -0800
> Michael Robertson <mcrobertson at hotmail.com> wrote:
> 
>> Am I wishing on a star?
>  
> for i in xrange(10**10):
>     print i
> OverflowError: long int too large to convert to int
> 
> The problem seems to be that although python supports arbitrary long
> integers, all the internal loop counters still use limited size
> integers.

I'm curious what you think this has to do with the Original Poster's 
question, which was about combinatorics (as the subject says), 
specifically asking where he could find a library to deal with them.


-- 
Steven



More information about the Python-list mailing list