Python替代编译器Nuitka发布0.5.16稳定版
11月11日,Nuitka开发团队通过博客,发布了***的稳定版本。
据介绍,这次主要是维护版本发布,主要是改进对新平台的支持,并进行部分修正。该版本会提升独立模式下的运行速度,以及部分使用场景下的编译效率。
Bug修复
-
Python: Fix, the gi_running attribute of generators is no longer an int, but bool instead.
-
Python3: Fix, the int built-in with two arguments, value and base, raised UnicodeDecodeError instead of ValueError for illegal bytes given as value.
-
Python3: Using tokenize.open to read source code, instead of reading manually and decoding from tokenize.detect_encoding, this handles corner cases more compatible.
-
Fix, the PyLint warnings plug-in could crash in some cases, make sure it's more robust.
-
Windows: Fix, the combination of AnaConda Python, MinGW 64 bits and mere acceleration was not working. Issue#254.
-
Standalone: Preserve not only namespace packages created by .pth files, but also make the imports done by them. This makes it more compatible with uses of it in Fedora 22.
-
Standalone: The extension modules could be duplicated, turned this into an error and cache finding them during compile time and during early import resolution to avoid duplication.
-
Standalone: Handle "not found" from ldd output, on some systems not all the libraries wanted are accessible for every library.
-
Python3.5: Fixed support for namespace packages, these were not yet working for that version yet.
-
Python3.5: Fixes lack of support for unpacking in normal tuple, list, and set creations.
更多Bug修复信息和此次更新的其他情况,请查看官方网站。
什么是Nuitka?
Nuitka 是一个Python的替代品,支持 CPython 提供的代码,可翻译 Python 代码到 C++ 程序,并使用 libpython 来执行这些代码,就像 CPython 一样。兼容 Python 2.6, 2.7, 3.2, 3.3 ,3.4和3.5。一些团队正用它做完全的Python编译工具,并尝试将Python代码转译为其它可高速运行的编程语言。
从反馈情况来看,Nuitka编译后的Python程序虽然可移植性降低,但是同时也减少了一些开销,对提升Python程序的效率有一定效果。
相关文章
- 图像处理工具Python扩展库,你了解吗?
- 十个常用的损失函数解释以及Python代码实现
- 30 个数据科学工作中必备的 Python 包
- 如何在 Windows 上安装 Python
- 几行 Python 代码就可以提取数百个时间序列特征
- 使用Python快速搭建接口自动化测试脚本实战总结
- 哪种编程语言最适合开发网页抓取工具?
- 不要在 Python 中使用循环,这些方法其实更棒!
- 震惊!用Python探索《红楼梦》的人物关系!
- 如何最简单、通俗地理解Python模块?
- 酷炫,Python实现交通数据可视化!
- 为什么急于寻找Python的替代者?
- 30 个数据工程必备的Python 包
- 去字节面试被面这题能答上来吗?谈谈你对时间轮的理解?
- 火山引擎在行为分析场景下的 ClickHouse JOIN 优化
- 用Python爬取了某宝1166家月饼数据进行可视化分析,终于找到最好吃的月饼~
- 在 Linux 上试试这个基于 Python 的文件管理器
- Python列表解析式到底该怎么用?
- 如何快速把你的 Python 代码变为 API
- 十个Python初学者常犯的错误