PyWart: Language missing maximum constant of numeric types!

Mark Lawrence breamoreboy at
Sat Feb 25 01:35:43 CET 2012

On 24/02/2012 23:16, Michael Torrie wrote:
> On 02/24/2012 09:59 AM, Mark Lawrence wrote:
>> The C integer bit doesn't matter since e.g.
>>   >>>
>> a=10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
>>   >>>  a
>> 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000L
>> And no, I'm not going to calculate how much memory I'd need to store a
>> string that's this long :)
> Sure but that doesn't answer the question posed.  How does Rick plan to
> represent an infinite integer? Obviously you've shown that with an
> infinite amount of memory we could do it quite easily.  But baring that,
> how does Rick suggest we should represent an infinite integer?

I understand that a Python integer can run to infinity.  Quite how the 
illustrious rr manages to test for the length of a string that's already 
used all of the memory on his system has baffled me, but I'm sure that 
all the people who frequent this list with their Phds, MScs or whatever 
will soon correct me.


Mark Lawrence.

More information about the Python-list mailing list