This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients Vignesh, serhiy.storchaka, terry.reedy
Date 2018-04-09.16:57:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1523293071.3.0.682650639539.issue33244@psf.upfronthosting.co.za>
In-reply-to
Content
Vignesh: This issue tracker is for reporting bugs in the CPython interpreter.  Requests for help with problems with your code should go elsewhere, such as pythonlist mail list or stackoverflow.com web site.

In this case, your problem is described in the error message: you input an int that is too large for the array of C longs.  The following is a much shortened example equivalent to your code.

>>> import array
>>> longs = array.array('l',[])
>>> longs.append(2222222222222222222222222222222222222222222)
Traceback (most recent call last):
  File "<pyshell#2>", line 1, in <module>
    longs.append(2222222222222222222222222222222222222222222)
OverflowError: Python int too large to convert to C long

When a program gets input from a user, it must be prepared to catch and deal with exceptions.  If you have more questions, ask on a user help forum, such as the 2 I listed above.
History
Date User Action Args
2018-04-09 16:57:51terry.reedysetrecipients: + terry.reedy, serhiy.storchaka, Vignesh
2018-04-09 16:57:51terry.reedysetmessageid: <1523293071.3.0.682650639539.issue33244@psf.upfronthosting.co.za>
2018-04-09 16:57:51terry.reedylinkissue33244 messages
2018-04-09 16:57:51terry.reedycreate