Python替代编译器Nuitka发布0.5.16稳定版

开发 后端
11月11日,Nuitka开发团队通过博客,发布了最新的稳定版本。据介绍,这次主要是维护版本发布,主要是改进对新平台的支持,并进行部分修正。该版本会提升独立模式下的运行速度,以及部分使用场景下的编译效率。

11月11日,Nuitka开发团队通过博客,发布了***的稳定版本。

[[156163]]

据介绍,这次主要是维护版本发布,主要是改进对新平台的支持,并进行部分修正。该版本会提升独立模式下的运行速度,以及部分使用场景下的编译效率。

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程序的效率有一定效果。

责任编辑:王雪燕 来源: 编程派
相关推荐

2013-08-21 10:18:34

Chrome 29

2009-04-28 18:57:25

Linux编译器GCC v4.4.0

2021-10-23 17:12:34

MX LinuxLinux

2013-12-13 13:32:50

FirefoxFirefox 26

2010-04-27 09:07:08

2013-05-22 15:02:13

Zend Framew

2011-04-15 10:37:27

2009-12-04 09:55:55

Linux内核Linux

2022-12-05 13:29:38

4MLinux编程语言Linux

2009-03-25 16:29:26

LinuxKernel 2.6.稳定版

2011-12-05 09:39:57

Node.js

2012-07-12 10:15:15

Node.js

2010-10-21 09:08:56

2012-08-01 13:35:58

Chrome 21

2012-10-31 10:19:37

2024-06-04 10:21:33

React组件布局架构

2011-04-12 21:47:02

nginx 1.0.0

2009-03-24 14:45:16

LinuxKernel稳定版2.6.29

2009-06-11 14:41:40

LinuxKernel发布

2009-03-04 08:54:38

新版升级MySQL
点赞
收藏

51CTO技术栈公众号