Download New Optimization
Transcript
• The name of contraction making functions is no longer skewed to empty, but the real thing instead.
The code name is solved differently now.
• The local_locals mode for function node was removed, it was always true ever since Python2
list contractions stop using pseudo functions.
• The outline nodes allowed to provide a body when creating them, although creating that body
required using the outline node already to create temporary variables. Removed that argument.
• Removed PyLint false positive annotations no more needed for PyLint 1.5 and solved some TODOs.
• Code objects are now mostly created from specs (not yet complete) which are attached and shared
between statement frames and function creations nodes, in order to have less guess work to do.
Tests
• Added the CPython3.5 test suite.
• Updated generated doctests to fix typos and use common code in all CPython test suites.
Summary
This release continues to address technical debt. Adding support for Python3.5 was the major driving
force, while at the same time removing obstacles to the changes that were needed for coroutine support.
With Python3.5 sorted out, it will be time to focus on general optimization again.
Nuitka Release 0.5.16
This is a maintenance release, largely intended to put out improved support for new platforms and minor
corrections. It should improve the speed for standalone mode, and compilation in general for some use
cases, but this is mostly to clean up open ends.
Bug Fixes
• Fix, the len built-in could give false values for dictionary and set creations with the same element.
# This was falsely optimized to 2 even if "a is b and a == b" was true.
len({a, b})
• 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.