Fatal Python error: PyImport_GetModuleDict: no module dictionary!

来源:互联网 发布:勇者之塔魂力进阶数据 编辑:程序博客网 时间:2024/06/03 21:45

The problem is that when you run this as a stand alone script you have a lot of daemon threads in doWork, but the script will exit when only daemon threads are left, so they all get killed by the interpreter exiting. When you run it interactively in IDLE the interpreter doesn't exit, so you don't run into that problem.


http://stackoverflow.com/questions/17679715/fatal-python-error-pyimport-getmoduledict-no-module-dictionary

0 0
原创粉丝点击