[New-bugs-announce] [issue22479] strange behavior of importing random module

Bekket McClane report at bugs.python.org
Wed Sep 24 11:21:10 CEST 2014

New submission from Bekket McClane:

When I import the random module using "import random" in the command line, it worked fine. But if I import it in the file, the program will throw a strange error, but sometimes it just exit right away after the import statement with no error. Moreover, if I execute the python command line again and "import random" after that, the command line python exit right away too(with exit code 0). Only if I restarted the whole terminal program did the strange behavior gone

components: Library (Lib)
files: Screenshot from 2014-09-24 17:04:58.png
messages: 227428
nosy: Bekket.McClane
priority: normal
severity: normal
status: open
title: strange behavior of importing random module
type: crash
versions: Python 2.7
Added file: http://bugs.python.org/file36705/Screenshot from 2014-09-24 17:04:58.png

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list