python-mode+emacs24.1的execfile问题解决
来源:互联网 发布:计算机基础与c语言 编辑:程序博客网 时间:2024/05/16 17:05
python-mode使用中,打开文件xxx.py输入python语句,按“ctrl+c ctrl+c”,会出现分割栏,并显示输出结果。
但安装python3.2后,输出会有:execfile
“filename cant find”的问题,网上网址
“https://bugs.launchpad.net/python-mode/+bug/450552”
或“http://mail.python.org/pipermail/python-list/2009-October/553535.html”,
解决办法为:修改python-mode.el文件的函数
“py-execute-file”中(cmd (format "execfile(r'%s') # PYTHON-MODE\n" filename))语句
改为(cmd (format "exec(compile(open('%s').read(), '%s', 'exec')) #
PYTHON-MODE\n" filename filename))
并将将其它所有“execfile”替换为“exec”,
经试验win7+emacs24.1+python3.2+python-mode-6.0-10版本成功。
2013
- python-mode+emacs24.1的execfile问题解决
- emacs24安装evil-mode
- Python 的exec, eval()和execfile()
- python的exec, execfile,compile, eval
- python exec/eval/execfile
- python内置函数execfile
- python execfile()和locals()函数
- python中eval, exec, execfile,和compile
- python中eval, exec, execfile,和compile
- python中eval, exec, execfile,和compile
- python中eval, exec, execfile,和compile
- python中eval, exec, execfile,和compile
- python中eval, exec, execfile,和compile
- python中eval, exec, execfile,和compile
- python中eval, exec, execfile,和compile
- python中eval, exec, execfile,和compile
- Python exec eval execfile compile 学习
- python中eval, exec, execfile,和compile
- * 定义验证各种格式类型的正则表达式对象
- mysql导入和导出数据库
- 搜索中两种高亮显示方式
- 获得鼠标选中文本的事件兼容多种浏览器
- Java学习循序渐进之private,protected,public,默认修饰的访问权限
- python-mode+emacs24.1的execfile问题解决
- 查询工程中的图片是否被引用 对于后期优化非常有用
- 文件管理
- 程序学习过程中存在的误区
- 进程与线程的区别
- 创建iis网站后 局域网不能访问
- oracle 聚合 分散 SQL
- 过去两月运行Cydia设备超2000万
- xxxx码