string to big int

Axel Grune NineOfSix at gmx.de
Sat Aug 31 11:51:45 EDT 2002


Hi, Im wondering how to convert a string which contains a huge integer 
("10000000000007") to a real integer (type int). When I ask int() to 
this it replies:

Traceback (most recent call last):
   File "C:\prime.py", line 43, in ?
     main()
   File "C:\prime.py", line 29, in main
     no = int( argv)
ValueError: int() literal too large: 10000000000007

any ideas?

TIA,
Axel




More information about the Python-list mailing list