New submission from Nicholas Prowse <nick5...@yahoo.co.uk>:
Filename: random.py Location of file: /use/lib/python3.5/random.py Function: random.choice() Input: 40 digit integer Expected output: no crash Actual output: Crash Line number: 253 Error message: "Python int too large to convert to C ssize_t" Traceback: a = random.choice(sequence) i= self._randbelow(len(seq)) Error occurs on last line 253. ---------- components: Library (Lib) messages: 367266 nosy: dev00790 priority: normal severity: normal status: open title: random.choice integer overflow v3.5.2 type: crash versions: Python 3.5 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue40388> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com