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 steven.daprano
Recipients dev00790, steven.daprano
Date 2020-04-25.09:26:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1587806810.23.0.376178179444.issue40388@roundup.psfhosted.org>
In-reply-to
Content
What you are describing is not what we mean by a crash (a core dump or segfault); it sounds like a regular Python exception.

Python 3.5 is obsolete and there are no more bug fixes for it except for security fixes.

You have not given us enough information to reproduce the problem. The description you give:

    Function: random.choice()
    Input: 40 digit integer
    Expected output: no crash
    Actual output: Crash


works for me:

    py> import random
    py> random.choice(1234567890123456789012345678901234567890) # 40 digits
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "/usr/local/lib/python3.5/random.py", line 253, in choice
        i = self._randbelow(len(seq))
    TypeError: object of type 'int' has no len()

is exactly the exception I would expect from using an int (whether 1 digit or 400 digits) as argument to random.choice.

Can you show us the actual code you run, and the actual traceback? Please copy and paste it as text, don't take a screen shot.
History
Date User Action Args
2020-04-25 09:26:50steven.dapranosetrecipients: + steven.daprano, dev00790
2020-04-25 09:26:50steven.dapranosetmessageid: <1587806810.23.0.376178179444.issue40388@roundup.psfhosted.org>
2020-04-25 09:26:50steven.dapranolinkissue40388 messages
2020-04-25 09:26:50steven.dapranocreate