2012年7月19日

摘要: 参考链接:http://www.doughellmann.com/PyMOTW/multiprocessing/basics.htmlOne difference between thethreadingandmultiprocessingexamples is the extra protection for__main__used in themultiprocessingexamples. Due to the way the new processes are started, the child process needs to be able to import the scrip 阅读全文

posted @ 2012-07-19 16:25 Kanone 阅读(211) 评论(0) 推荐(0)

摘要: 参考资料:http://stackoverflow.com/questions/2774585/child-processes-created-with-python-multiprocessing-module-wont-printWell, IDLE is a strange thing. In order to "capture" everything what you write usingprintstatements orsys.stdout.write, IDLE "overrides"sys.stdoutand replaces it w 阅读全文

posted @ 2012-07-19 10:44 Kanone 阅读(1571) 评论(0) 推荐(0)

摘要: 升级部署Python后发现交互模式下输入Ctrl,Alt,箭头等会出现乱码,解决如下:$sudo yum -y install readline readline-devel进入安装目录,$.configure$vim Modules/Setup //取消#readline readline.c -lreadline -ltermcap行的注释符#//su 转到root账户#make;make install 阅读全文

posted @ 2012-07-19 10:40 Kanone 阅读(355) 评论(0) 推荐(0)