Message367268
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. |
|
Date |
User |
Action |
Args |
2020-04-25 09:26:50 | steven.daprano | set | recipients:
+ steven.daprano, dev00790 |
2020-04-25 09:26:50 | steven.daprano | set | messageid: <1587806810.23.0.376178179444.issue40388@roundup.psfhosted.org> |
2020-04-25 09:26:50 | steven.daprano | link | issue40388 messages |
2020-04-25 09:26:50 | steven.daprano | create | |
|