27 Nov 2026
Planet Python
Kay Hayen: Nuitka Release 4.4
This is to inform you about the new stable release of Nuitka. It is the extremely compatible Python compiler, "download now".
This release adds very many new features and corrections with a focus on Python 3.15 official support, experimental cross-compilation targets for WASI and experimental free-threaded Python builds.
Bug Fixes
-
Fix, when the main module raised an exception during its execution, it was unregistered and released like any other module, although its code objects and functions can still be used afterwards, e.g. by
__del__methods making frames during interpreter finalization, which could crash. The main module is now kept registered and referenced. (Fixed in 4.3.1 already.) -
Python3: Fix, the
__path__of compiled namespace packages was created with the compile time full name of the package, which does not necessarily match the__name__the module has at run time, so the namespace path could not find its submodules, e.g. for a nested implicit namespace package inside a compiled package. The module__name__attribute is now used. (Fixed in 4.3.1 already.) -
Python 3.14+: Fix, deferred annotations did not account for conditional execution, so annotations in blocks that did not run, e.g. under
if TYPE_CHECKING:, were still included in__annotations__, unlike CPython, which only includes such annotations if their assignment registered its index in__conditional_annotations__. The registration is now done at run time and checked when the annotations are created. (Fixed in 4.3.1 already.)from typing import TYPE_CHECKING condition = True if TYPE_CHECKING: checked_only: set if condition: executed: str else: not_executed: bytes # 4.3: all annotations present in "__annotations__" # 4.3.1: only annotations of executed statements present
-
Standalone: The Tk version 9 interpreter on Windows is now created with the
PATHenvironment variable temporarily removed, since Tk loads ICU DLLs dynamically and prefers versioned DLLs found in thePATHover the ones included with Windows, which could make the program depend on third party software. (Fixed in 4.3.1 already.) -
Plugins: Fix, the probe that decides whether compiled methods need cached wrappers to avoid the unlimited API
PySide6viaSystemErrorin signal slots used temporary bound methods, which were not protected from the other bug we normally work around. (Fixed in 4.3.1 already.) -
Anaconda: Fix, the
include/pythondirectory used on Windows by Anaconda and conda-forge Python since version 3.15 was not considered when locating the Python headers, so compilation aborted with a message about an unsupported embeddable distribution. (Fixed in 4.3.1 already.) -
Module: Fix, the file system paths of loader entries used the package prefix that is added to the runtime name when a compiled unit is loaded as a package, e.g. producing
ns/pkginstead ofpkg, so data and resource files were looked up at the wrong location. The prefix is now removed for the file system paths. (Fixed in 4.3.1 already.) -
Fix,
dict.fromkeysnodes were marked as unable to raise for iterables without a known small length, so e.g. unhashable keys or a raising iterator could go unhandled and crash. They are now always considered able to raise, while the compile time computation remains limited to small known iterables. (Fixed in 4.3.2 already.) -
Fix, isolated mode (
--python-flag=isolated) still registered the meta path based loader'ssys.path_hooksentry, which always raisedImportError, so a path hook was present where none should be. No path hook is now registered at all. (Fixed in 4.3.2 already.) -
Fix, the inline ordered dictionary used on Python 2.6 had
setdefaultreturnNoneinstead of the value, which could break YAML configuration handling there. It now returns the value like the built-indictmethod. (Fixed in 4.3.2 already.) -
Fix, closing a generator or coroutine before it was started returned success without marking it as finished, so its state stayed
GEN_CREATEDorCORO_CREATEDand a laternext()would start the body instead of raisingStopIteration. Closing now marks it as finished. (Fixed in 4.3.2 already.) -
Fix, a
breakorcontinueof a loop created inside afinallyblock released the pending return value, although it does not abandon thereturn, so a released object could be returned. The release now only happens for loops that were active when the return handler was entered. (Fixed in 4.3.2 already.) -
Python 3.5+: Fix, coroutine and async generator returns did not run the local variable cleanup, so their locals dictionary and the values it holds stayed alive after finishing. The return exit now releases them like the exception exits already did. (Fixed in 4.3.2 already.)
-
Python 3.8+: Fix, an uncaught
KeyboardInterruptgave exit code 1 instead of the SIGINT style exit code CPython uses since 3.8, i.e.128 + SIGINTon POSIX and0xC000013Aon Windows. (Fixed in 4.3.2 already.) -
Python 3.13+: Fix,
--python-flag=no_warningsgave errors, since the warning options were applied before the meta path based loader was ready, while the interpreter imports thewarningsmodule during startup on 3.13. The disabling now happens after the loader setup. (Fixed in 4.3.2 already.) -
Python 3.14: Fix, creating single character and empty
bytesobjects used the internal_Py_SINGLETONmacro, which is fragile there, and now accesses the runtime static objects directly. (Fixed in 4.3.2 already.) -
Python 3.14: Fix, the
ValueErrormessage oflist.index()did not match CPython 3.14, which uses the static textlist.index(x): x not in listinstead of naming the value. (Fixed in 4.3.2 already.) -
Plugins: Fix, the
PySide6signal workaround kept the receiver objects alive, since it held references to the compiled methods rather than only to their function objects, which is all that needs protection from the over-release issue. Receivers are now released normally. (Fixed in 4.3.2 already.) -
Plugins: Fix, the
PySide6signal workaround could crash during shutdown, since PySide6 releases the compiled function object once too often, potentially after interpreter finalization. A keep-alive reference is now leaked for the function to survive this, and the wrappers use weak references to the receiver, dropping connections and cached wrappers when it is released, which also keeps memory usage under control. (Fixed in 4.3.2 already.) -
macOS: Fix, onefile signal forwarding did not handle signals sent directly to the bootstrap process, since
kill(2)deliverssi_code == 0there rather thanSI_USER. Signals are now always forwarded on macOS, and the child suppresses the duplicate SIGINT it already received from the terminal process group. (Fixed in 4.3.2 already.) -
macOS: Fix, code signing with a keychain file could fail because
codesignonly searches the keychains in the user's search list, and the temporary copy used for signing was not part of it. The temporary keychain is now added to the search list while signing and the previous list restored afterwards, and identity names are resolved to their unique hashes so other keychains cannot make them ambiguous. (Fixed in 4.3.2 already.) -
macOS: Fix, the onefile parent bootstrap could forward SIGINT after the child had already received the same signal from the terminal process group, so the duplicate arrived only when the handler was already running and interrupted the shutdown. When the signal did not come from the parent, the handler now waits briefly for a possible forwarding while SIGINT is blocked, so a duplicate that arrives then is suppressed. (Fixed in 4.3.2 already.)
-
Compatibility: Fix, floating point power operations handled underflow as an error and infinite results without
errnoas success. Underflow now gives the zero result, and infinite results raiseOverflowError, matching CPython's_Py_ADJUST_ERANGE1. (Fixed in 4.3.2 already.) -
Module: Fix, loader entry names were always prefixed with the package prefix in module mode, even when the compiled unit was built under its full dotted name, so imports were attempted with duplicated names like
ns.sub.ns.sub.pkg.models. Only entries rooted at the loaded leaf name are prefixed now. (Fixed in 4.3.2 already.) -
Onefile: Fix, when the child process was terminated by a signal, the bootstrap used
WEXITSTATUSon its status, reporting success instead of the signal exit code. It now reports128 + signal. (Fixed in 4.3.2 already.) -
Onefile: Fix, the compressor failed with
libzstdbuilds without multithreading support, since a positive thread count is rejected there. The thread count is now limited to the supported range, and thezstandardfallback uses a single thread. (Fixed in 4.3.2 already.) -
Onefile: Fix, the child exit code could be lost when the child was reaped by the signal handler, since the main wait then got
ECHILDand reported 0. The reaped status is now recorded and used for the exit code. (Fixed in 4.3.2 already.) -
BSD: Fix, onefile binaries were not linked with
pthread, although the parent monitoring thread usespthread_create()andpthread_detach(), which need it on the BSDs as well. (Fixed in 4.3.2 already.) -
BSD: Fix, defining
_POSIX_C_SOURCEon BSD systems restricted the system headers to strict POSIX, hiding BSD specific interfaces, e.g.getexecpathwas left undeclared in the onefile bootstrap on OpenBSD. It is no longer defined there. (Fixed in 4.3.2 already.) -
BSD: Fix, the
sendfile()fallback for file copying reported success even when reading or writing failed, since it returned a boolean while the caller compared against -1, and the read error check tested the function rather than the byte count. It now returns the copied byte count, handlesEINTR, completes short writes, and is also used on FreeBSD. (Fixed in 4.3.2 already.) -
Fix, when the stop argument of
list.index()failed its index conversion, theLIST_INDEX4helper released the start index a second time, risking a crash from the over-release. It is now only released once. (Fixed in 4.3.3 already.) -
Fix, sequence item access converted oversized indices with
PyNumber_AsSsize_tand no exception type, so indices that did not fitPy_ssize_twere clamped to the platform maximum instead of raisingIndexErrorlike CPython. The conversion now passesPyExc_IndexError, so such indices raise the matchingIndexError. (Fixed in 4.3.3 already.) -
Fix, the compiled
chr()usedPyInt_AsLongand replaced conversion errors with a genericTypeError, so__index__errors did not propagate, floats were accepted on Python 2 and gave the wrong message before Python 3.9, and values outside the Cintrange gave the wrong exception. It now usesNuitka_PyLong_AsLongAndOverflow, rejects floats, propagates__index__errors, and givesOverflowErrorbefore Python 3.13 andValueErrorafterwards. (Fixed in 4.3.3 already.) -
Fix,
HAS_ATTR_BOOL2did not release the result of the attribute lookup after converting it to a boolean, so a reference leaked on every call. The result is now released. (Fixed in 4.3.3 already.) -
Fix, the
list.copynode always registered an exception exit, while the code generation assumed that the operation cannot raise, so dead code for an error that was never considered was emitted. (Fixed in 4.3.3 already.) -
Python 2: Fix, the
BUILTIN_RANGE3helper checked the converted end value for failure instead of the converted step value, sorange()with an object step that failed conversion left the error unhandled and could crash. The step conversion is now checked. (Fixed in 4.3.3 already.) -
Python 3.12+: Fix, the replacement for
sys._getframemodulename()converted its depth with an unboundedPy_ssize_t, so values beyond the Cintrange were used for frame traversal instead of raisingOverflowErrorlike CPython. The conversion now usesPyLong_AsLongAndOverflowand rejects values that do not fit a Cint. (Fixed in 4.3.3 already.) -
Python 3.15+: Fix, the meta path based loader set
__spec__,__file__, and__path__on extension modules only after executing them, so the module code did not see them. The attributes are now set before execution, and the module is registered insys.modulesonly after it executed successfully. (Fixed in 4.3.3 already.) -
Compatibility: Fix, in-place addition of a
listortuplewith a right value of unknown type used sequence concatenation whenever the value was a sequence, so a__radd__method of e.g. atupleorstrsubclass was ignored. The number add slot of the right value is now tried first, and concatenation only happens when it is absent. (Fixed in 4.3.3 already.)class TupleWithRightAdd(tuple): def __radd__(self, other): return "TupleWithRightAdd.__radd__" values = [1] values += TupleWithRightAdd((2,)) # 4.3.2: [1, 2] (wrong) # 4.3.3: "TupleWithRightAdd.__radd__" (correct)
-
Multidist: Fix, the runners generated for entry points called the user main function unconditionally, so importing one in a multiprocessing child process executed the program again. The call is now guarded by a
__name__ == "__main__"check. (Fixed in 4.3.3 already.) -
Onefile: Fix, the SIGINT deduplication handler published the last SIGINT time only after waiting for a possible parent forward, so handlers in other threads could not suppress duplicates during the delay, an interrupted sleep shortened the wait, and
errnowas not preserved for the saved Python handler. It now distinguishes terminal delivery where the platform reports it, publishes the timestamp before waiting, retries interrupted sleeps, and restoreserrno. (Fixed in 4.3.3 already.) -
Fix, cloning a
reversed()call node passed its child asobjectinstead ofobject_arg, which the node constructor does not accept, so cloning such a node, e.g. in tuple assignments usingreversed(), could crash the compiler. The clone arguments now use the constructor parameter names. (Fixed in 4.3.4 already.) -
macOS: Fix, app bundles in forced console mode used the regular executable name in their
Info.plist, so the launcher script was not identified correctly. The executable name now gets a.shsuffix in that mode. (Fixed in 4.3.5 already.) -
Compatibility: Fix, comparison chains evaluated the right operand before the left one, so function calls and other side effects in expressions like
a() < b() < c()happened out of order. The left operand is now stored in a temporary first, and each comparison uses its own temporary, preserving left-to-right evaluation and short-circuiting. (Fixed in 4.3.5 already.) -
Compatibility: Fix,
os.path.isdirusedpathas its argument name, while CPython usess, so calls with the keyword, e.g.os.path.isdir(s=...), failed. The keyword name is nows, and the argument remains positional-only on Windows before Python 3.8. (Fixed in 4.3.5 already.) -
Fix, the
locals()expression node did not include its locals scope ingetDetails, so cloning or displaying the node failed, e.g. in unpacking assignments that uselocals(). The scope is now included. -
Fix, in-place updates of module variables stored in the module dictionary did not keep the previous value alive during the operation, so it could be released while still in use, leaving a dangling reference. The operation now holds a new reference to the value until the update is complete.
-
Fix, the frame scope could be reduced during optimization while node replacements were still pending, so the decision was based on an untraced state. It now waits for the next pass when any node changed.
-
Fix, the frame locals proxy did not hash the lookup key before comparing variable names, so unhashable keys did not raise
TypeError. The key is now hashed up front, and names with different hashes are skipped. -
Fix, the temporary path template expansion formatted
timeval.tv_secwith%ld, which is too narrow wheretime_tis wider than Clong, e.g. for the WASI target. It now uses%lldwith a cast. -
Fix, assigning
__file__or other module constants to a local variable could crash the optimization in standalone mode, since the specialized variable assignment still expected a variable reference after constant folding, e.g. where__file__becomes a path relative to the program directory. Such assignments are now converted to generic assignments, and the self-assignment checks verify the source is a variable reference first. -
Fix, the set display optimization treated any constant element as hashable, so a constant set literal containing an unhashable constant, e.g. an empty list, was created at compile time instead of raising
TypeErrorat run time. Constant set creation now requires known hashable elements, iteration prediction for single element sets only applies to hashable ones, and set creation error exits release the created set, so it can be used in boolean conditions. -
Fix, deferred releases of pinned references were emitted at the end of the code scope instead of with the owning reference, and were not handled on error exits, so the custom release could happen too late or not at all. They are now emitted by the regular release code when the owning reference is dropped, and by error exit code for values still owned when an error occurs, with the scope end emission removed from sub-collectors.
-
Fix, the loader built the containing package name in a fixed size buffer without checking the length, so a module name longer than the buffer could overflow it. Longer names are now rejected before copying, matching the entry name comparison that already rejected them.
-
Fix, the safe string helpers did not reserve room for the terminating NUL when appending wide strings, and copying wide strings checked the buffer while writing instead of checking the source length up front. Appending now requires room for two characters, and copying verifies the source length first.
-
Fix, cloning function bodies together with an enclosing outline scope did not translate their closure and taken variables, so cloned generator, lambda, and comprehension bodies could reference variables of the original scope. Closure variables and taken variables are now translated, with tests for generator and lambda closures in list contractions and cloned
finallyblocks. -
Fix, error path checks compared unicode filenames and messages with
strcmpon a temporary UTF-8 encoding, which could fail while handling another exception. AddedNuitka_Unicode_CompareWithASCIIString, which compares ASCII text without encoding or raising, and used it for these checks. -
Fix, a file lock acquired through
withFileLockwas released only after theyield, so an exception left it held. The release now happens in afinallyblock. -
Fix, the retry decorator reported and slept after the final attempt, so a final failure was delayed by another retry interval. The retry message and sleep now only happen when another attempt remains, and the final failure is reported immediately.
-
Fix,
setconstruction and set displays leaked the partially built set when an element expression raised through a nested cleanup block, e.g. fors = {1, [1, h()]}. The set now has a local exception target and is released before jumping to the enclosing handler. -
Fix, plugin-provided package extra scan paths were applied to subpackages using the parent package directory, so imports could be scanned from the wrong location. They now use the candidate directory of each subpackage, are only considered when it exists, and missing import warnings name the actual import source instead of the importing module.
-
Fix,
StopIterationandStopAsyncIterationsubclasses raised by generators, coroutines, and async generators were not converted toRuntimeError, since the code compared the exception type pointer instead of matching the exception. Exception matching is now used, so subclasses are converted too. -
Fix, the handled exception state was not kept in generator, coroutine, and async generator objects while they ran, so
sys.exc_info()and implicit chaining were wrong, and throwing into a suspended object on Python 3.9+ did not chain to its handled exception. The handled state is now kept in the object while it runs, chained when throwing, and the caller state restored afterwards. Saved exceptions are restored and cleared when yielding outside a handler on Python up to 3.6, andyield frompreserves the handler state across delegation and forwards sent values to delegated generators.def gen(): try: raise KeyError("handled") except KeyError: yield generator = gen() next(generator) try: generator.throw(ValueError("thrown")) except ValueError as exception: print(exception.__context__) # 4.4rc8: None on Python 3.9+ (wrong) # 4.4rc9: KeyError('handled')
-
Fix, calls to C functions using
METH_FASTCALL, with or withoutMETH_KEYWORDS, dispatched with the wrong argument counts and tuple usage on some Python versions. The fast call variants are now selected by exact flags, and missing error checks and reference handling for method descriptors,__init__results, and called objects were added, avoiding leaks on rare errors. -
Fix, the
asciispecialization used thereprparameter spec, and theissubclassspecialization used theisinstancespec, so argument handling and errors could be wrong. Each now uses its own spec. -
Fix, async methods with class-private names were not mangled, because the source or bytecode function builder received the unmangled name, so the method was bound under its source name. The mangled binding name is now passed for normal and async functions, while the function's
__name__stays unmangled like CPython. -
Fix, the DLL subdirectory search did not normalize the search root and parent candidates, so a path with a trailing slash could make the walk up to the root loop endlessly. The paths are now normalized and termination is asserted.
-
Fix, slice handling had several issues: a step of 1 was optimized away although it is observable in the resulting slice, constant
Nonebounds were treated as values, and integer constants were not distinguished from other small number constants. Only aNonestep is removed now,Nonebounds are unbounded, and integer constants use their index value. -
Fix, the exact frozenset shape mixin overrode the list shape predicate instead of the frozenset one, so frozenset exact shapes were misreported. It now overrides
hasShapeFrozensetExact. -
Fix,
close()on generators and coroutines returned a boolean internally, so compiled frames could not distinguish success from an exception or release the close result. The close helpers now return the result object, and Python 3.13+ returns the value of aStopIterationraised while handlingGeneratorExit. -
Fix, runtime helpers had several garbage collection and reference issues: function objects did not visit their defaults, keyword defaults, annotations, type parameters, and annotate functions; type parameters were not cloned; function table offset bounds and code object description fields were wrong; and coroutine origin frames, frozen module detection, and loaded extension module references were handled incorrectly. The traversal, cloning, bounds, descriptions, frame counting, detection, and references are now correct.
-
Fix, statement code generation replaced the current source reference without restoring it, and exception normalization used the statement source reference instead of the exception type's. The previous reference is now restored in a
finallyblock, and exception normalization uses the exception type's reference. -
Fix, locals dictionary deletions did not apply tolerated deletions correctly, and synchronization did not release the locals mapping. Deletions now clear errors when tolerated and raise the proper
NameErrorotherwise, the mapping is released after synchronization, and the closure check forexecuses the correct Python version. Exact dictionaries now only raise for a name that was never set, while value finalizer exceptions are ignored like CPython. -
Fix, attaching
nameandpathattributes toImportErrorandAttributeErroroverwrote existing references without releasing them, and used the outer temporary instead of the actual exception object.Py_XSETREFand the actual exception value name are now used. -
Fix, dual-typed
int/longvalues had multiple bugs, including missing truth checks and assignment conversions, incorrect reference handling for in-place assignments, and wrong object value accesses. Truth checks and conversions were added, references are now released and taken correctly, and exception checks use the validity field. -
Fix, range and xrange element value predictions used off-by-one index bounds, mishandled a zero step, estimated lengths incorrectly for negative steps, and checked the upper bound in the wrong direction. The bounds, length estimates, and direction checks were corrected.
-
Fix, constant dictionary item lookups used the item node's own constant instead of the dictionary argument, so the wrong object was indexed, and
dict.getextracted side effects from a nonexistentdefaultschild instead of the default node. Both now use the correct operands. -
Fix,
importlib.metadataintegration reported found distributions as missing, and the standard and backport entry point value references used each other's base classes. Found distributions are now successful, and each implementation uses its own base classes. -
Fix, ignored directory and filename matching was case-insensitive in some places but not others, and single suffix strings could be treated as iterables of characters. The matching is now shared and normalizes both sides.
-
Fix, a class whose name consisted only of underscores produced an empty mangling prefix, so private names were mangled differently. Such classes now leave private names unmangled, matching CPython.
-
Fix,
NuitkaCalledProcessErrordid not initialize its base class, so the exit code and command were not stored, and missing optional tools returned bytes when text was requested and vice versa. The base initializer is now called, and the empty result matches the requested text or bytes decoding. -
Fix, module version comparison did not pad detected versions with zeros and kept comparing after a detected part was greater, so usable Python installations could be rejected. Detected versions are now padded, and comparison stops when a part is greater.
-
Fix, cloning class bodies dropped the class name, flags, qualname setup, deferred annotations, annotation state, and static attributes, and qualname references still pointed at the original body. The clone state is now preserved and qualname references are updated.
-
Fix, tree cloning could fail because several nodes lacked
getDetailsimplementations or finalization, unresolved function references were not supported, and the compile node expected a different source parameter name. The missing details and finalization were added, and package resource usage attempts use the resolved package name. Parent and variable-trace references are now also cleaned up for locals, key/value, and assignment nodes that can be finalized after cloning. -
Fix, non-constant key/value pair nodes called a nonexistent method when checking for constant string keys, so mapping detection could fail. They now use
isExpressionConstantStrRef. -
Fix, cloned function bodies did not keep variables owned by the cloned scope, including locals dictionary, class, module, and import-star variables, so cloned code could refer to the original scope. The variables are now cloned with the scope, and the missing setters and class frame details were added. Function flags, auto-release variables,
needs_creationandneeds_direct, qualname setup and provider, and non-local declarations are now preserved, provider translations keep qualname providers and outline entry points pointed at the clones, and cloned outlines get unique temporary variable names. Exec locals closure variables are translated when cloning and unregistered from the closure set, and class body clones translate their qualname provider as well. -
Fix, function inlining did not apply cloned-scope translations to parameters, temporaries, taken variables, closures, and auto-release variables, and release statements kept the old node type when a variable changed class. The translations are now applied and release statements replaced.
-
Fix, borrowed values used as call arguments or binary operation operands could be released by later arguments that rebind the source variable, leaving a dangling reference. Such values are now promoted to owned references when a later expression may write the variable.
-
Fix, error results from
DICT_HAS_ITEMandHAS_ATTR_BOOL2were treated as "not found" in fromlist imports, loader post-load binding,eval/exec, and dictionary updates, and the compact dictionary lookup could leave its result pointer uninitialized. The errors are now propagated, the result pointer is initialized, and parent module resolution releases its temporary reference. -
Fix, class namespace lookups treated exceptions from custom mappings as a missing name. The checks now mark the access as potentially raising and emit the error exit.
-
Fix,
os.path.isabsused as a value had no code generation dispatch, so compilation failed. It is now dispatched like the otheros.pathhard imports. -
Fix, method calls through a custom
__getattribute__invoked__get__again on the returned callable data descriptor, so the descriptor was not called. Thetp_getattroresult is now used directly, and attribute lookup errors are propagated. -
Fix, assigning to a read-only attribute whose class has a descriptor reported that the object has no such attribute. It now reports that the attribute is read-only.
-
Fix, a function dictionary
__module__lookup error was ignored and fell back to the module name. The error is now propagated. -
Fix, generated
os.path.joincalls did not emit the call line number, kept the argument array in function scope, leaked the result, and always checked for errors. The line number is emitted, the array is scoped, the result is cleaned up, and the error check only happens when the call can raise. -
Fix, a yield-from target without a
throwattribute was treated as a failed throw instead of delegating into the generator, and other attribute lookup failures were ignored. A missingthrownow delegates, and non-AttributeErrorfailures propagate. -
Fix, calls through an uncertain class-scope locals dictionary evaluated arguments twice or in the wrong order when a later argument changed the shadowing. Such calls are now outlined, evaluating arguments once in source order, with a conditional for the locals dictionary lookup.
-
Fix, replacing a call to a just-created function with a direct call dropped side effects from defaults, keyword defaults, annotations, and type parameters. Those are now evaluated before the direct call, and preserved on the exception path.
-
Fix, the unhashable-key
TypeErrorfor dictionary displays evaluated keys and values in the wrong order and could drop side effects. Preceding pairs, the key, and its value are now evaluated in source order before the error is raised.{[]: 1} # TypeError: unhashable type: 'list'
-
Fix, the three-argument
type()call always set__module__from the compile-time module name after class creation, overriding the frame globals or metaclass behavior.type_newnow resolves it from the active frame globals, only falls back when no frame is active, and handles non-type metaclass results and lookup errors. -
Fix, building replacement
TypeErrormessages released the original exception state before reading type names, and replaced exception values were not released. Messages are now built first, values are released correctly, and generator exception matching uses direct subtype checks on Python 3. -
Fix,
TUPLE_COPYfilled the copied tuple withPyList_SET_ITEM, and the long sign helpers overwrote unrelated tag bits and missed setting the digit size when updating from a C long. Tuple items usePyTuple_SET_ITEM, the sign is masked, and the digit size is set. -
Fix, resolved and unresolved binary paths shared one cache slot,
printnewline calls used stdout instead of the requested file, and Python 2 class__name__assignment checked for a dictionary. The caches are separate, the requested file is used, and__name__requires a string. -
Fix, docstring removal replaced any first
Constantbody expression with an empty string, includingNone. It now only clears string constants, leaving other constants untouched for compatibility. -
Fix, boolean assignments did not release the value used, and boolean and cell targets overwrote their old reference. In-place operations also lost ownership for module variables and cleanup temporaries. Old values are now released before replacement, boolean and cell targets use
Py_NewRef_IMMORTAL, and in-place operands keep correct ownership. -
Python 3.14: Fix, exception messages that name the type of a mistyped object used only the type name, while CPython 3.14 uses the fully qualified name. The complaint helpers now use
Nuitka_PyType_GetFullyQualifiedName, which includes the module for heap types outsidebuiltinsand__main__. -
Python 3.14+: Fix, template string interpolations asserted that no conversion was present, so
!r,!s, and!awere not supported. The conversions are now mapped to the_PyInterpolation_Buildcodes, including format specifications and nested specifications. -
Python 3.14+: Fix, template strings and interpolations were generated without
withObjectCodeTemporaryAssignment, so they did not work in boolean contexts and unused ones were not safely discarded. They now use the regular temporary assignment and cleanup. -
Python 3.4-3.7: Fix, standalone mode did not provide a loader entry for
multiprocessing.semaphore_tracker, which these versions spawn instead ofmultiprocessing.resource_tracker, so the tracker process could not start. The entry is now registered and used when the tracker module name matches. -
Python 3.4-3.7: Fix,
chr()used the Python 3.8+ argument conversion, so values outside the Cintrange gave the wrong errors there. It now converts to a Clongfirst and reportsOverflowErrorwith CPython's messages for values above or below the Cintrange. -
Python 2: Fix,
chr()rejected float values on Python 2.6, where CPython truncates them. It now truncates them on 2.6, while 2.7 continues to reject them. -
Python 3.10+: Fix, the implicit
staticmethodwrapping of__new__was applied only on Python 2, so compiled__new__functions in class bodies were not treated like CPython's. It is now applied on Python 3.10 and later too, but not before 3.10, wherestaticmethodobjects are not callable andenumcalls__new__from the class namespace directly. -
Python 3.11: Fix, invalid
return,break, andcontinuestatements inexcept*blocks were not rejected, so invalid code compiled. They now raise CPython'sSyntaxErrorwhen they escape the block, while nested functions, classes, and loops remain allowed. -
Python 3.12: Fix, the
longupdate helpers usedPy_ABS(Py_SIZE())as the digit count, which no longer matches the digit count on Python 3.12, where it is packed into the object tag. They now useNuitka_LongGetDigitSize. -
Python 3.12+: Fix, type aliases declared in nested generic functions could not be created, because the alias node used a variable reference for its name and claimed it could not raise. The written name is now passed as a constant and child expressions are evaluated for exceptions.
-
Python 3.12.0: Fix, a generator or coroutine closed before it was started was reported as closed by
inspect.getgeneratorstate()andinspect.getcoroutinestate(), while CPython 3.12.0 fails to clear the frame and reports it as created. The closed-before-start state is now tracked and reported like CPython. -
Python 3.11+: Fix,
except*re-raise detection compared the contained leaf exceptions, so re-raising a leaf exception and raising a new group that reused the same leaf were treated the same. The exception notes, traceback, cause, and context are now compared like CPython to distinguish actual re-raises. -
Python 3.15+: Fix,
asyncandawaiterrors now use the Python 3.15 message formats, with fully qualified type names for__await__returning a coroutine or a non-iterator, and for awaiting a non-awaitable object, using the newSET_CURRENT_EXCEPTION_TYPE_COMPLAINT_QUALIFIED2helper, while keeping the Python 3.14 full compat and truncated type name handling. -
Python 3.15+: Fix, call and class keyword argument errors now match Python 3.15. Calls with positional arguments use the generic "Value after * must be an iterable, not …" message for the value after
*, non-string keyword names are reported after all mappings are merged so duplicate keyword errors take precedence, and class keywords use the CPython call helper in full compat mode so errors name__build_class__. -
Python 3.12+: Fix,
importlib.resources.filesusedpackageas its only argument name, while Python 3.12 renamed it toanchorand kept a wrapper acceptingpackageonly until Python 3.15, so keyword calls were rejected or attributed to the wrong argument. The 3.12 to 3.14 variant now accepts both names, the 3.15 variant onlyanchor, and the generated version criteria were tightened. -
Python 3.12+: Fix, type variable constraints were passed as the bound, so a constrained type variable had the tuple of constraints as its
__bound__and no__constraints__. Constraints are now passed separately when creating the type variable, with tests for function and class constraints, forward references, and lazy evaluation. -
Python 3.12+: Fix, type alias, type variable, and deferred annotation scopes nested in class bodies resolved names against module globals rather than the class namespace, so forward references and class attributes shadowed at module level gave wrong results. Names are now looked up in the class namespace first with module globals as fallback, capturing the namespace before the class body runs and using the created class dictionary afterwards, with the prepared namespace as fallback when a metaclass returns a non-class.
-
Python 3.14+: Fix, the forkserver launcher kept its own
-cinvocation insys.argv, and when no main path was passed the forked children executed the main module again. The parent process arguments are now passed through, the launcher options are removed fromsys.argv, and__parents_main__is pre-loaded as__main__when no main path is given. -
Python 2: Fix,
str.translateandunicode.translatedid not accept the optionaldeleteargument, since the specialized nodes used a single argument spec for all versions. The specs are now split by Python version, and the Python 2 variant passes thedeleteargument. -
Python 3.13+: Fix, the built-in
eval,exec,locals,vars, anddirused CPython's frame locals proxy, which requires an exact frame object and fails for compiled frames. The builtins are now replaced with versions that supply globals and locals from compiled frames, installed after global constants and before module constants, with tests for indirect calls. -
Python 3.10+: Fix, class patterns looked up each keyword attribute twice, because a separate existence check ran before
MATCH_CLASS_ARGS, which already checks keyword attributes and returnsNonewhen one is missing. The redundant lookup was removed. -
Python 3.14: Fix, CPython 3.14 gives
_PyObject_GC_TRACKand_PyObject_GC_UNTRACKfile and line arguments, so headers that still called them bypassed Nuitka's replacements. The macros are now redirected to the Nuitka versions where CPython uses this signature. -
Python 2: Fix, the
longspecialization used theintparameter spec and anintconstant, and the comparison helpers converted the leftintoperand instead of the right one. It now uses thelongspec and constant, and the correct operand is converted. -
Python 2: Fix, hashing of
longvalues did not convert them to text, and booleans were not handled at all, so cache key generation could fail.longvalues are now converted to text, and booleans are hashed distinctly. -
Python 3.13: Fix, frame clearing and GC traversal treated locals as owned even when the frame's locals pointer did not point at its own storage, so references from unowned locals could be traversed and released. Ownership is now checked before releasing or traversing locals.
-
Python 3.14+: Fix, writes of non-exact integers to dual-typed locals in the frame locals proxy were accepted, and the previous value was released before taking the new reference. Such writes now raise
RuntimeError, and the new reference is taken first. -
Python 3.13+: Fix,
locals()in optimized scopes returned the live dictionary, while PEP 667 makes it return a fresh snapshot. The locals copy node is now used there. -
Python 3.5+: Fix,
async forover values that are not async iterable did not raise the properTypeErrorand could lose side effects when the check was decided at compile time. It now raisesTypeError, preserves side effects, and uses a separate slot for the async iterator minimum length. -
Python 2: Fix, print statements with a value that had side effects failed to compile, because the side effects were not split into separate statements before replacing the print value. They are now split and the statement compiles.
-
Python3: Fix, compiled calls raised assertions or wrong messages for duplicate keyword arguments and non-string keyword names. They now raise
TypeErrorlike CPython in full compat mode, covering compiled functions, vectorcall, methods, andfunctools.partial. -
Python 3.8+: Fix, direct compiled function and method calls did not track recursion depth, so deep recursion could overflow the C stack instead of raising
RecursionError. Method calls now use the small stack, vectorcalls without keywords have a fast path, and keyword vectorcalls pass the argument offset. -
Python 3.9+: Fix, formatting the abstract class instantiation error computed the method count after releasing the sorted method list, causing a use-after-free, and the message pluralization and wording did not match Python 3.9+ and 3.12+. The count is computed before release and the message matches CPython.
-
Python 3.12+: Fix, the import blocker used by import detection only implemented
find_module, which Python 3.12+ no longer consults, so modules that failed detection could be imported later. It now implementsfind_specand keeps failed modules failed. -
Python3: Fix,
allandanyon constant ranges computed wrong results for empty, negative, and negative-step ranges because range length and indexed values were simulated by iteration. They are now computed directly, with side-effecting bounds preserved. -
Python 3.13+: Fix, class code objects and
__firstlineno__used the class line instead of the first decorator line, so they now match CPython. -
Python 2: Fix, project variable keys were validated with
str.isidentifier, which does not exist on Python 2, sonuitka-project-setfailed there. The sharedisPythonIdentifierhelper is now used. -
Python 2: Fix,
hasattronly suppressedAttributeError, while CPython suppresses all exceptions from the attribute access. It now suppresses all exceptions on Python 2 and still onlyAttributeErroron Python 3. -
Python3: Fix, keyword-only defaults were resolved separately in each argument parser, and errors from keyword default dictionary lookups were ignored. The resolution is now shared, and lookup errors propagate.
-
Python3: Fix, keyword argument name comparisons that raised
__eq__were treated as unmatched, hiding the exception. Errors now propagate for plain, star-dict, keyword-only, vectorcall, andevalcalls. -
Python 3.6+: Fix,
throw()andasend().throw()did not pass the close-on-GeneratorExitflag like CPython, soaclose()and nested coroutines could fail to close yield-from targets. The flag is now passed, exception clearing uses the shared helpers forStopIterationandGeneratorExit, and the obsolete closing assertion was removed. -
Python 3.6+: Fix,
__init_subclass__and__class_getitem__were always wrapped inclassmethod, even when decorated withstaticmethod, an explicitclassmethod, or a descriptor. They are now wrapped only when the final class dict entry is a plain function. -
Python 3.8+: Fix,
yieldinside list, set, and dict comprehensions and directly in class bodies was accepted in some cases. It is now rejected with CPython'sSyntaxErrorwording and source location, including comprehensions wrapped in outline functions. -
Python 3.10+: Fix, the pattern matching argument count
TypeErrorswapped the maximum allowed and actual counts and formattedPy_ssize_twith%d. The counts are in the right order and use%zd. -
Python 3.11+: Fix, function body kind detection did not inspect comprehension elements, targets, or all generators, so nested
awaitandasync forinside generator expressions were missed. They are now inspected, and the body is marked asynchronous. -
Python 3.13: Fix, freezing the GC during compilation corrupted object state on CPython 3.13.0 free-threaded builds. Freezing is skipped for that build, and the collector is unfrozen before finalization to avoid Python 3.11 debug build assertions.
-
Python 3.13+: Fix,
update()and|=on the frame locals proxy only accepted dictionaries and proxy instances and useditems(), so dict subclasses with overriddenitems()or general mappings behaved incorrectly. General mappings and other proxies are now accepted viakeys()and__getitem__, and self-updates and mutation during iteration are handled. -
Python 3.13+: Fix, defaults for
TypeVar,TypeVarTuple, andParamSpecwere evaluated eagerly and passed as values, so forward references and lazy default evaluation failed. Deferred evaluation functions are now built, including starredTypeVarTupleunpacking, and passed through type aliases and runtime type parameter objects. -
Python 3.15: Fix,
bytes.replacedid not markoldandnewas positional-only starting with Python 3.15. The specs now match, and calls with those keywords are rejected. -
Python 3.15: Fix, dictionary unpacking in displays and comprehensions used the generic update path, giving wrong
TypeErrormessages for non-mapping and non-iterable keys, and did not support the Python 3.15DictComp(key=..., value=None)representation for**in comprehensions. A dedicated unpack path now emits version-appropriate messages and handles both forms. -
Python 3.12+: Fix, constants were classified as immortal merely by being immutable, including the GC-tracked
ExceptionGroupheap type, andsys.version_infowas treated as immortal. Constants are now tracked as guaranteed immortal, known mutable, or unknown, and generic constant returns only use constants that are certainly immortal. -
Python 3.12+: Fix, the caught exception type extracted the exception instance instead of its type. It now uses
Py_TYPE(exception_value), matching CPython's exception state. -
Python 3.7+: Fix, class subscription used separate constant and runtime paths, so
__class_getitem__set toNone, non-callables, descriptors, and metaclass attribute errors behaved differently. Both paths now share one helper with version-appropriate errors.class C: __class_getitem__ = None C[int] # Python 3.11+: TypeError: type 'C' is not subscriptable
-
Python 3.5+: Fix, assigning to
cr_frameraised the generator attribute messagegi_frame is not writable. It now namescr_frame. -
Python 2: Fix, list extension used the Python 3 length hint API and mishandled failing hints. It now uses the Python 2 private API, reports a missing exception as
SystemError, and only resizes for positive hints. -
Python 3.12+: Fix,
TypeAliasTypeinstances created in compiled code got the wrong__module__, becausetypingderives it from the caller frame's function object. Compiled caller frames now get a temporary function object, andTypeAliasTypeis included in the patched typing types.from typing import TypeAliasType Alias = TypeAliasType("Alias", int) print(Alias.__module__) # the module that defines Alias
-
Standalone: Fix, symlinks to shared libraries, e.g. versioned aliases like
libfoo.sopointing tolibfoo.so.1.2, were copied as separate regular files, which could load duplicate library state. Symlinks are now preserved, with their targets copied first, and macOS binary path fixing is skipped for the link itself. -
Standalone: Fix, the loader's
find_specraised the excluded module import error instead of returningNone, so availability probes likeimportlib.util.find_specdid not behave like for missing modules. It now returnsNonefor excluded modules, and only the actual import attempt raises. -
Standalone: Fix, when DLLs with the same name were found in different locations, the first one won regardless of whether it came from the Python installation or the system. DLL paths are now classified as inside, VC redist, or system, and copies from the Python installation and program directories are preferred over system ones.
-
Standalone: Fix, Python allocators were captured before interpreter initialization, so allocator settings from the environment were not respected, and hook allocator contexts were cached after they became invalid. The allocators are now captured after initialization, hook allocators are routed through the Python API, and standalone mode ignores
PYTHONMALLOC,PYTHONTRACEMALLOC,PYTHONDEVMODE, andPYTHON_GILfrom the environment. The free allocator is now captured for all Python versions, not only free-threaded builds. -
Standalone: Fix, a failing
lddcall was ignored and dependency detection continued with incomplete output. The exit code is now checked and the error output reported. -
Standalone: Fix, the
{PROGRAM_DIR}template expansion on non-Windows started its backwards directory scan at the terminating NUL byte instead of the last character, so the value expanded incorrectly. The scan now starts one character earlier. -
Standalone: Fix, scanning a package path for extension modules did not handle missing parent modules or
__path__, leaked the path, filenames, and stored extension module references, and kept scanning after a match. Missing parents now count as not found, references are released, and scanning stops at the first matching extension module. -
Standalone: Fix, a reentrant fixed import during extension module initialization saw the loader placeholder instead of the real module in
sys.modules. Reentrant imports of the owning thread now use the real module. Internal loader modules stay registered when their execution fails, so reentrant imports can still find them. -
Standalone: Fix, the
lddcache was keyed only by DLL name even though results depend on the package and original directory, and dependency cycles could recurse endlessly. The cache key now includes package and directory, visited DLLs are tracked, and the Python executable is resolved withos.path.realpath(). -
Standalone: Fix, storing the JIT source dictionary in the builtins module leaked the dictionary reference. It is now released after storing, and the assignment is checked in debug mode.
-
Plugins: Fix, the onefile compression warning of the
upxplugin checked theisOnefileModefunction object instead of calling it, so the warning was never effective. The check now calls it. -
Plugins: Fix, the
source-inclusionprobe did not record source files loaded by child processes. It now injects a generatedsitecustomizemodule that writes each record immediately, so records from worker processes survive even when they are killed, and conflicting records for a module are reported as an error. -
Plugins: Fix, the
PyQt5andPyQt6slot decorators forced slot methods to remain uncompiled, and the PyQt5 plugin only applied in standalone mode, so decorated slots were not real Python methods and signal connections, disconnections, andQTimer.singleShotcould reject them or not track the receiver lifetime. Slots are now compiled, with runtime wrappers that expose decorated methods as real Python methods and convert compiled methods for signalconnect/disconnectand timers while preserving receiver lifetime tracking. Accelerated builds get the support too. -
Plugins: Fix, plugin decisions for docstrings and assertions were only applied through the global Python flags when building trees and resolving
__debug__, so per-module anti-bloat configuration for docstrings and assertions had no effect there. The module's decisions are now used when extracting docstrings and creating builtin references, and standard library modules always drop docstrings. -
Plugins: Fix, DLL configuration entries with a
relative_tomodule or relative destination paths failed when that module was not available, instead of being ignored. Missing modules are now tolerated when resolving destination paths, and no entry is created then. -
Plugins: Fix, a plugin decision of
neverfor recompiling extension modules could be overridden by later plugin decisions or the command line source preference. It is now cached and returned immediately. -
Plugins: Fix, the
giplugin only patched one quote style of PyGObject'sDynamicImportersetup, and included platform specificGio/GLibtypelib files without their generated virtual module imports. Both quote styles are now patched, and the platform namespaces are included through the virtual module imports. -
Plugins: Fix, preprocessor symbols were cached globally across onefile and backend builds, although plugins can provide different symbols for each. The cache is now keyed by the build kind.
-
Plugins: Fix, the help text of
--noinclude-qt-translationsdescribed the option as including Qt translations, although it excludes them. The help text now describes the exclusion. -
Plugins: Fix, conflict handling treated two negative dependency or missing DLL decisions as conflicting instead of only an opposite decision, and short option conflicts were detected by testing the whole short option list rather than membership. Conflicting decisions now require opposite values, short options are compared correctly, and unhandled plugin option conflicts are reported.
-
Plugins: Fix, plugin conditions for
arch_x86,arch_amd64, andarch_arm64only recognized one spelling each. They now accept common aliases such asi386/i686,amd64, andaarch64. -
Plugins: Fix, a stale or incompatible
setuptoolsinstallation raisingSyntaxErrorduringpkg_resourcesimport aborted compilation. It now counts as unavailable. -
Plugins: Fix, configuration
whenexpressions were evaluated even for entries that did not configure the requested item, recording plugin influences that were not real. They are now only evaluated for matching entries. -
Plugins: Fix, JIT-generated functions were compiled with
<string>and without the module's future flags, so kernel compilers could not read or parse their source. They now use the module filename and future flags, and plugin docstring decisions are applied. -
Plugins: Fix, permission error handling for DLL and data file scans imported the built-in
PermissionError, which does not exist on Python 2. It is now imported from the compatibility module. -
Plugins: Fix, a partially removed tkinter installation that imports without
TkVersionnow counts as unavailable instead of failing compilation. -
Plugins: Fix, merging duplicate YAML configuration sections replaced list entries instead of appending them, did not copy list or dictionary sections, and did not recheck sections after merging, while mismatched section types could be silently merged as dictionaries. Lists and dictionaries are now copied, list entries append, sections are rechecked, the configuration module is passed through expression evaluation, and mismatched types are rejected.
-
Plugins: Fix, variable configurations were numbered from zero while constants started at one, so runtime information cache names were not stable. They now start at one.
-
Plugins: Fix, Qt plugin handling only checked the system
patchelfand aborted for versions 0.10 and 0.11, which are known to corrupt Qt plugin metadata when rewriting the RPATH. Apatchelfversion 0.12 or newer is now downloaded into the private pip space when the system one is missing or unsuitable, and used for all RPATH changes, with the broken 0.18.0 release rejected outside distributions that have a fixed build. The check only runs in standalone mode, and binary-only private pip packages are now located through their metadata, sincepatchelfinstalls no module. -
Windows: Fix, removing a directory tree with links on Python before 3.8 followed junctions and symlinks and deleted the contents of their target directories instead of only the links, which could lose unrelated files, e.g. of the Python installation. Links are now never followed, and a link given to
removeDirectoryitself is removed safely too. -
Windows: Fix, for virtual environments of uninstalled self compiled Python, the DLLs next to the base executable were not scanned, since only the
sys.executabledirectory and the system prefix were used. The directory of the system prefix executable is now included as well. -
Windows: Fix, some Python installations failed in accelerated mode when the Python DLL was only found through the system search path, because extension modules could not be located. The exact
sys.pathis now passed inNUITKA_PYTHONPATHfor execution when no launcher script is created. -
Windows: Fix, MinGW64 and Zig builds for 64-bit Python before 3.8 used the wrong
long doubleABI, and before 3.12 missedMS_WIN64. The flags now match the MSVC ABI, and function pointer casts use unions to avoid debug build warnings. -
Windows: Fix,
getFileModereturned 0 for missing files, while the POSIX implementation returns -1, so callers such asisExecutableFilecould treat a missing file as existing. It now checksGetFileAttributesWand returns -1 for invalid attributes. -
Windows: Fix, the standalone loader used
.pydas the filename suffix for extension modules, so extension modules of debug Python builds, which use_d.pyd, could not be found. The suffix now matches the freezer and uses_d.pydfor debug builds. -
Windows: Fix, Windows error messages used the ANSI
FormatMessageand formatted error codes as signed, which could lose or garble non-ASCII system messages. Wide characterFormatMessageWis now used, with unsigned error codes and an unknown-message fallback. -
Windows: Fix, Windows resource reading used missing ctypes signatures and did not always free loaded libraries, and version resources used the wrong structure version, 16-bit header fields, string lengths, and padding. The signatures and resource names are now correct, libraries are freed, and version info fields are written correctly.
-
Windows: Fix, clcache released its mutex even when it was not acquired, did not capture and print compiler output consistently when
CLCACHE_DISABLEwas set, and modified the caller environment. The mutex is only released when acquired, output is captured and printed consistently, and the environment is copied before modification. -
Windows: Fix, the NSIS installer embedded the whole icon group and rejected non-ICO images, so
--windows-icon-from-icowith a PNG or an icon index produced a broken installer. Non-ICO icons are now converted to ICO, and the icon index is stripped because NSIS cannot apply it. -
Windows: Fix,
nuitka-run.cmdrelied on a quoted invocation ofnuitka.cmdthat did not reliably find Python. It now locatespython.exenext to the launcher or its parent directory, likenuitka.cmd. -
Windows: Fix, conda DLL search paths were only detected for the conda base installation, not for virtual environments created from it, and
Library/binwas missing from the scan directories. The conda base prefix is now detected through the system prefix, andLibrary/binis included for DLL scanning. -
Windows: Fix, executing a compiled binary with
--runused a bare name, which Windows does not search in the current directory whenNoDefaultCurrentDirectoryInExePathis set. Bare names now get an explicit current-directory prefix. -
Windows: Fix, generated launch scripts quoted
setassignments incorrectly, and batch files with arguments or parentheses were not executed reliably.setvalues are now quoted, bare batch paths get an explicit current-directory prefix, and batch files run throughcmd.exe /d /s /cwith an outer quoted command. -
Windows: Fix, path comparisons relied on
os.path.normcase, which is a no-op on macOS and MSYS2 POSIX Python despite case-insensitive file systems, and import scanning used a separate case-sensitivity decision. AddedisCaseInsensitiveOS()and normalized casing for comparisons and import scans. -
Windows: Fix, drive path restoration could turn a UNC path into a drive path when the share root was only a name prefix, and drive roots without trailing separators were mishandled. Restoration now checks the share root as an actual prefix, and drive splitting uses
ntpathfor MSYS2 compatibility. -
macOS: Fix, DMG creation converted the source icon again instead of reusing the app bundle's actual
.icnsfile, and an app bundle without external files was passed directly tocreate-dmg, which flattened the bundle into the volume root. The bundle icon is now remembered and reused for the volume icon, and the bundle and external files are staged so the bundle stays intact. -
macOS: Fix, the
.dylibsdirectory next to a package was only added when the package directory existed, not the.dylibsdirectory itself, and an unsupported DLL configuration did not stop after reporting it. The actual.dylibsdirectory is now checked, and the unsupported configuration returns immediately. -
macOS: Fix, dependencies that referenced a library with an ABI suffix were resolved with the specific suffix slice instead of the ABI suffix, so the actual extension module file was not found and left unresolved. The correct suffix is now replaced.
-
macOS: Fix, the generated console mode wrapper script started with an unwanted blank line. The template now uses a backslash line continuation.
-
macOS: Fix, architecture-specific versioned dylibs such as
libgcc_s_x86_64.1.dylibwere not detected, because only the version suffix was considered. Architecture-suffixed variants are now checked before the version suffix. -
macOS: Fix, accepted missing macOS dependencies were handled by raising and catching
NuitkaForbiddenDLLEncounter. Accepted dependencies are now skipped directly, while Qt plugin private dependencies are still excluded. -
macOS: Fix, DLL detection cached results without the package rpath state, later binary fixups could get a different result than the copy step, and package rpaths were keyed by string. The cache key includes the rpath snapshot, the first result is reused for fixups, and rpaths are keyed by
ModuleName. -
Linux: Fix, an explicitly given Linux installer output filename had its extension changed to
.AppImageagain, so a custom name could be altered. The given filename is now used as-is, and only the default output gets the.AppImageextension. -
Compatibility: Fix, a relative import whose level exceeded the package depth was resolved to a parent package that was not there, instead of giving a not found result. It now stops at the top-level package, and this also applies when a package is compiled as a module, where the runtime parent package is not known at compile time.
-
Compatibility: Fix, assignments and deletions of
__debug__were not diagnosed asSyntaxErrorin all places, e.g. in named expressions, imports, function arguments, class keywords, type aliases, pattern matching, and function and class names. They now raise the sameSyntaxErroras the corresponding Python version, with its version-specific exceptions respected. -
Compatibility: Fix,
list.insertconsidered non-constant index values unable to raise and constant ones able to raise, which is the reverse of the actual behavior, so afloatorNoneindex went unchecked and later gave aSystemError, and itsTypeErrormessage lacked "object". Before Python 3.10, afloatindex now gives the argument parsing error like CPython. Theinsertoperation now raisesOverflowErrorfor index values too large forPy_ssize_t,list.indexclamps start and stop values like CPython, and__index__errors other thanTypeErrorpropagate. -
Compatibility: Fix, more number operation corner cases, including in-place
float **= nanreturning the right operand without taking a reference, so objects still in use could be freed,2.0 ** infand0.0 ** -infgiving0.0instead ofinf, float floor division with a negative divisor using the dividend sign, and Python3 float power with a negative base and fractional exponent raisingValueErrorinstead of giving a complex result. Python2 in-place complex power now delegates toPyNumber_InPlacePower, which handles the coercion that the generic helper path did not. Sequence repeat factors at thePy_ssize_tboundaries are now handled, and the type shapes of power operations include the possible results and exceptions.print(2.0 ** float("inf")) print(0.0 ** -float("inf")) print(1.0 // -2.5) print((-1.0) ** 0.5) # 4.3: 0.0, 0.0, -0.0, ValueError # 4.4: inf, inf, -1.0, (6.123233995736766e-17+1j)
-
Compatibility: Fix, type shapes disagreed with CPython for some operations:
bytes + bytearraywas consideredbytearrayinstead ofbytes,type < typeon Python3 was considered unable to raise although metaclasses can overload it,int(),long(), andfloat()ofbytearraywere rejected as impossible at compile time, andNone | typeon Python 3.10+ was rejected instead of producing atypes.UnionType. -
Compatibility: Fix, compilation of some
enumerateandzipcalls failed because calls known not to raise still jumped to an exception exit the function did not have.needs_checkis now passed frommayRaiseException,enumeratestart values andzipstrict truth checks are considered potentially raising, andmayRaiseExceptionIndexandmayRaiseExceptionItershape methods were added. -
Compatibility: Fix,
nextwith a default value crashed for values that are not iterators. It now checksHAS_ITERNEXTand raises CPython'sTypeError, and uses the optimized iterator path when the value is known to be an iterator. -
Compatibility: Fix, the keyword argument specs of some built-in methods were wrong:
dict.get,pop,setdefault,fromkeys, and Python2has_keyaccepted keyword arguments that CPython rejects, whilestr.replaceon Python 3.13+ now allowscountas a keyword, andbytes.translateon Python 3.6+ allowsdeleteas a keyword, with the other arguments remaining positional-only. The positional-only argument error inmatchCallnow gives CPython's "takes at least N positional arguments" message. -
Compatibility: Fix, truth checks of comparison results converted
CHECK_IF_TRUEtonuitka_boolwith a ternary, so an exception raised by__bool__was silently turned into false.CHECK_IF_TRUE_NBOOLnow preserves the exception indicator, and the comparison and binary operation helpers use it, so e.g. a comparison yielding an object whose__bool__raises now propagates the exception.class BadBool: def __bool__(self): raise ValueError("no truth value") class Comparable: def __eq__(self, other): return BadBool() [Comparable()] == [Comparable()] # now raises ValueError
-
Compatibility: Fix, when a module replaced itself in
sys.moduleswhile executing, the loader used the replacement for the load state too, so compiled code's frame globals became the replacement, which may lack__builtins__. The executed module is now kept in the load state, and only the importer receives the replacement. -
Compatibility: Fix, class base
__mro_entries__results were extended directly, so a non-tuple result was accepted or failed differently. The result is now stored in a temporary and checked to be a tuple in full compat mode, raisingTypeErrorlike CPython. -
Compatibility: Fix,
super()with deleted implicit arguments compiled a reference to a variable without a value instead of raising CPython'sRuntimeError, e.g. "super(): empty __class__ cell" or "super(): arg[0] deleted". These errors are now raised when the traces show the arguments are unset, and full compat mode also observes a dynamically shadowedsuperin the module namespace. -
Compatibility: Fix, variable deletions in full compat mode did not update the line number before generating the deletion, so errors raised by
delreported the line of the previous statement. The line number is now updated first. -
Compatibility: Fix, resuming a generator did not check for pending calls and signals, so a
KeyboardInterruptwas delivered later in the caller instead of at theyieldexpression like CPython'sRESUMEinstruction. The check now happens when the generator is resumed, excludingthrowinto the generator, which already has an exception set. -
Compatibility: Fix,
eval,exec, andexecfileevaluated the globals and locals arguments before the source code or filename, so function calls and other side effects in expressions likeeval(source(), globals())happened out of order. The source is now stored in a temporary variable first, preserving CPython's evaluation order. -
Compatibility: Fix, modules demoted to bytecode used their original filename when the file reference mode was not
original, so tracebacks and code objects did not match the requested file reference choice. The runtime filename is now used for demoted modules in those modes. -
Compatibility: Fix, a class dictionary could be propagated to a temporary variable while a locals reference in a conditional branch was still undecided, so the class namespace was no longer available at run time. The propagation is now prevented for such references, and branch trace collection updates mark escaped locals.
-
Compatibility: Fix, class body lookups could not distinguish class namespace names from enclosing function locals when the locals were assigned later in the function, because the bindings were only known after visiting the assignments. Names bound by assignments and deletions are now registered while building the tree, with
nonlocaldeclarations checked before they are consumed, and function variable assignment prefers provided variables over taken ones. -
Compatibility: Fix, on non-Windows systems a closed standard input was replaced with
/dev/null, while CPython leavessys.stdinasNonewhen file descriptor 0 is closed. The replacement is now skipped forstdinon POSIX, preserving child process behavior that e.g. multiprocessing relies on. -
Compatibility: Fix, built-in parameter specs could not express a Python visible keyword that differs from the internal argument name, so
os.path.isdiron Windows with Python 3.12.0 rejected itspathkeyword, while that version used it before the rename tos. Keyword aliases are now supported for built-in specs, and the alias is used for the platform dependent argument name. -
Compatibility: Fix, a value read from a variable could be used as a borrowed reference while generating an expression, and a later write to the same variable, e.g. by a walrus assignment, released it before the expression used it. Borrowed references are now tracked and a reference is taken before such writes, with the C type property
holdsObjectReferencehandling dual and non-reference-counted types. Tracking now also covers slices, operations, call arguments, and dictionary keys.value = "".join(["a"] * 1000) other = value + (value := "b") # 4.4rc6: the string could be released before the addition # 4.4rc7: the value stays alive until the expression is done
-
Compatibility: Fix, slices were always considered unhashable, although Python 3.12+ slices are hashable when their components are. Slice hashability now follows the components, ranges, unions, generic aliases, and anonymous values are handled in constant hashability checks,
sys.version_infois hashed on Python 2.7, where it is a struct sequence rather than a tuple, and the bitwise, matrix multiplication, and bytearray modulo shape tables were corrected. -
Compatibility: Fix,
withandasync withlooked up__enter__/__aenter__before__exit__/__aexit__and could call the enter method even when the exit lookup failed. Both special methods are now looked up first, with the version-specific order for Python 3.6+, 3.9+, and 3.14, and enter is not called if the exit lookup fails. -
Compatibility: Fix, the text constructor with
encodingorerrorsbut no object did not validate those arguments and failed instead of returning an empty string. It now validates them and returns an empty string like CPython. -
Compatibility: Fix,
float()and membership tests used the wrong CPython error messages on some versions and lost argument side effects when raising. The messages now match the Python version, side effects are preserved, and exception template placeholders are validated. -
Compatibility: Fix, unhashable keys suppressed exceptions for
dict.getanddict.pop, anddict.clear()did not invalidate knowledge or preserve finalizer side effects. The operations now raise correctly, anddict.clear()invalidates dictionary knowledge with control flow escaping. -
Compatibility: Fix,
list.countwas treated as unable to raise and as having no side effects, so a dropped result lost exceptions and comparison side effects. It is now treated as able to raise and run arbitrary comparison code. -
Compatibility: Fix, more type shape differences with CPython remained for loop alternative comparisons,
str/unicodebinary operations, andnoton non-bool comparison results. The shapes were corrected, andnotnow leaves non-bool results to runtime truth testing. -
Compatibility: Fix, star argument iterability checks looked up
__iter__and__getitem__attributes, which a custom__getattribute__could hide. The checks now inspect type slots, so iterable objects remain iterable.class HiddenIter: def __iter__(self): return iter((1, 2)) def __getattribute__(self, name): if name == "__iter__": raise AttributeError(name) return object.__getattribute__(self, name) print([*HiddenIter()]) # [1, 2]
-
Debugging: Fix, on Windows, the PDB file of an unstripped target was left in the build directory after moving the executable, so it was lost. It is now moved next to the final binary, and the
.pdbsuffix is cleaned up with the other intermediate files. -
Debugging: Fix, the mapping length helper asserted that
mp_length()did not raise or return a negative value, hiding the original error. Raising and negative results now propagate, solen()and iteration report the real exception.class BadLen(dict): def __len__(self): return -1 len(BadLen()) # ValueError: __len__() should return >= 0
-
Debugging: Fix, debug checks for compiled types compared
tp_subclassesagainst the wrong base field, atype_paramssetter checkedselftwice, and frame debug output used the compiled frame printer. The assertions and setter now check the right values. -
Cache: Fix, the bytecode cache did not restore whether a module usage source reference was internal, so warm-cache compilation reports could differ from cold-cache ones. The cache format now stores and restores that flag.
-
Onefile: Fix, the splash screen was only shown when the payload was compressed, although the option is independent of compression. It is now shown whenever it is enabled.
-
Onefile: Fix, payload file sizes were truncated to 32 bits on Windows, and checksums could not handle files larger than 32-bit sizes. Added
calcCRC32With64BitSize(), usedGetFileSizeEx(), and handled zero-sized files without failing memory mapping. -
Onefile: Fix, the Posix child wait loop converted milliseconds to nanoseconds with
* 1000, so grace timeouts expired a thousand times too early. It now uses* 1000000L. -
Scons: Fix, the exit code of a Scons build did not distinguish signal termination, because
os.WEXITSTATUSwas used unconditionally. Signal exits now report the negative signal number. -
Scons: Fix, MSVC builds with Python 2.6 headers warned about C4273 from the declarations of
acosh,asinh,atanh, andlog1p. That warning is now disabled for this combination. -
Scons: Fix, the
-Wc23-extensionsdiagnostic pragma was emitted for all resource modes and all Clang versions, so older Clang could fail on the unknown warning group. It is now emitted only for the#embedresource mode and Clang 19 or later. -
Scons: Fix, constant blob filenames in generated code used backslashes, and the MinGW symbol name got a leading underscore on all architectures, so 64-bit MinGW builds could fail to link the blobs. Forward slashes are now used for the paths, and the underscore is only added for 32-bit x86.
-
Scons: Fix, in the
linkerresource mode, blob paths were turned into linker symbol names, so modules whose names differed only in characters that map to_, e.g.a.banda_b, could collide. Blob symbol bases are now restricted to ASCII letters, digits, and underscores, adding a hash of the source filename where needed to make them unique, and their readable part is limited to keep blob filenames within Windows path limits. The#embedpath is relative to the generated file rather than the working directory. -
Scons: Fix, interrupting a build left compiler processes running and spawn threads blocked on their output pipes, and hanging child processes could block indefinitely. Interrupts now stop the spawn threads and kill the compiler process family, with process tree termination on Windows, and process communication and import detection have timeouts.
-
Scons: Fix, external C caching tools such as
ccachecould reuse a compiled object when the contents of an embedded constant blob changed, since the generated C code itself did not change. The generated code for thec23_embedandincbinresource modes now includes a checksum of the blob, so caches notice the change. -
Scons: Fix, unexpected Python exceptions in Scons build actions were converted to build errors without their traceback, so only the message was shown. The traceback is now passed through.
-
Scons: Fix, clcache accepted cache entries with missing or zero-sized object files, which caused linker errors, and only checked that the object file existed after compilation. Unusable entries are now removed and treated as misses, and only successful compilations with a usable object file are cached.
-
Scons: Fix, compiler command lines in
CCandCXXwere treated as a single path, so options were lost and unquoted Windows paths with spaces failed. The command line is now split into compiler path and options, options are preserved when injectingccache, and compiler detection uses the split path. -
Scons: Fix, Scons imported
readlinefor its interactive mode, which could pull inlibeditand emit termcap warnings. The import is now blocked for the non-interactive build. -
Scons: Fix, on Python 2, Scons arguments were not decoded with the
argument_encodingoption it expects, and a missingsys.__stdout__.encodingcould fail decoding. Arguments are decoded only on Python 2 with the expected option, and missing encodings fall back to locale and UTF-8. Environment variable updates now tolerate missing entries and encode Python 2 unicode values for subprocess compatibility. -
Scons: Fix, adapted Python header include paths were appended behind the normal include paths, so they were not reliably preferred. The adapted directory is now prepended, and the duplicate
SYSFLAG_DONTWRITEBYTECODEbuild definition was removed. -
Scons: Fix, Homebrew ccache guesses pointed at a directory instead of the binary and accepted directories as binaries, and the
CLCACHE_MEMCACHEDwarning was emitted during ccache setup. The guesses point atccachebinaries, only files are accepted, and the warning moved into clcache setup. -
Scons: Fix, Scons options, environment variables, build definitions, no-deployment flags, plugin preprocessor symbols, include directories, and link inputs were emitted in nondeterministic order. They are now sorted, and plugin APIs are asserted not to return sets.
-
UI: Fix, conflicting data file destination paths were only detected for exact path matches, so non-normalized paths could fail later at run time. Conflicts now use normalized paths and case-insensitive comparison on such file systems, with an error that names the reason.
-
UI: Fix,
--versionrequired a usable C compiler and could give an error message or attempt downloads. It now uses a download mode ofnoand reportsVersion C compiler: not found.instead, and the separateassume_yes_for_downloadsanddownload_okflags were merged into one download mode ofno,ask, oryes. -
UI: Fix, the error message for a debugger that was not found in
PATHwas missing the debugger name, and the module parameter error had a stray quote. Both messages are now formatted correctly. -
UI: Fix, path checks used manual decisions and did not reject paths that were only a drive or a root without a drive. Path validity decisions now carry a reason and are used for legal path errors and DLL directory scans.
-
UI: Fix, user input paths from command-line options and environment variables were not normalized consistently, and
~expansion on Windows could treat~1.txtas a user home. Paths are now normalized at the option boundaries, including data files, icons, installer outputs, container paths, and external tools, and Windows only expands the plain~shorthand. -
UI: Fix, the unusual-code warning for a local module shadowing a standard library module used a nonexistent attribute and could crash. It now uses the actual module filename found during import.
-
UI: Fix, flushing the standard output streams could abort with
BrokenPipeErrorwhen the output was piped, e.g. intohead, or withEINVALfor a detached Windows console, and the line-buffered redirector writes and flushes had the same problem. These errors are now ignored, while other errors still propagate. -
Reports: Sensitive option values are now redacted in compilation reports and container command output by matching option name patterns, including abbreviated long options, with default patterns for
password,salt, andsecretoptions. -
PGO: Fix, demoting unused modules to bytecode crashed when a plugin provided fake modules for them, since only trigger modules were replaced in the plugin module tables. Fake modules are now replaced as well, and only actual compiled modules get source code assigned.
-
PGO: Fix, cached modules demoted to bytecode were compiled without the module facts needed for plugin decisions, so docstring removal and the package flag passed to the frozen module bytecode hook could be wrong. The module name, package status, and docstring decision are now passed explicitly, with docstring decisions available by module name and filename for modules not in the registry yet.
-
PGO: Fix, modules that were too complex to compile and demoted to bytecode used a separate path without plugin docstring decisions. They now use the shared demotion path, so docstring decisions are applied consistently.
-
Persistence: Fix, code object positional-only argument names were serialized as a tuple, parameter details were restored with the wrong types, and
co_qualname, future flags, and async generator expressions were missing when saved code objects were loaded. The details are now serialized and restored correctly. Temporary variable types, variable versions, and persisted version numbers for assignment and deletion nodes are now restored as well. -
Project: Fix, unknown
[tool.uv]config keys always produced a warning, including known keys that do not affect how the project is built. The knownindex,managed, andsourceskeys are now ignored, and the warning for unknown keys was reworded. -
Distributions: Fix, distribution metadata handling now tolerates missing metadata and falls back to the
.dist-infodirectory name for Debian packages, only logs a missing distribution warning when the lookup was unsuccessful, and detects the vendoredsetuptools/_vendorpath. -
Multidist: Fix, multidist basename detection stripped any trailing characters matching
.py/.exe/.bininstead of actual extensions, did not normalize case for matching, and inserted module names and basenames without quoting. It now strips only real extensions, compares normalized names, and usesreprfor generated code. -
Distutils: Fix, the check that rejects
--projecttogether with--maindid not recognize--moduleand--mode=packageas module mode, so the combination could pass. Both forms are now treated as module mode. -
Quality: Fix, the stderr filter for tool calls treated the presence of unfiltered error lines as a successful filtered run, so a failing tool could be reported as success, while output that was entirely benign kept the failure. It now returns success only when there was output and all of it was filtered as benign, and leaves the exit code in effect otherwise.
-
Watch: Fix, the watch tool did not recompile a case when the selected Python installation version changed, since the compilation report's Python version was not considered. The Python version is now read from the report and compared with the selected interpreter, and existing Pipenv virtualenvs are checked and recreated when their Python version differs.
-
NoGIL: Fix, GCC warned about
stringop-overflowin the NULL branch it creates for atomic reference count operations in free-threaded CPython code, which is GCC bug 105585. The warning is now disabled for GCC builds of such code, unless warnings are errors. -
NoGIL: Fix, Scons is not free-threading safe and gave sporadic errors during parallel builds with free-threaded Python.
PYTHON_GIL=1is now set for the build tool only. -
NoGIL: Fix, string reuse and in-place operations used
Py_REFCNT(...) == 1, which is not sufficient for free-threaded builds and could mutate shared objects. They now use_PyObject_IsUniquelyReferencedwith a fallback for Python before 3.13.4. -
NoGIL: Fix, module and builtin dictionary lookups returned borrowed references in free-threaded builds, while concurrent mutation could invalidate them, and builtin caches were updated without atomics. The lookups now return owned references using critical sections, builtin caches use atomic operations, and unlocked static caches are avoided.
-
MSYS2: Fix, the runner created for entry points used a non-normalized path, which could produce mixed path separators. The generated runner filename now uses
getNormalizedPathJoin. -
MSYS2: Fix, MSYS2 package detection checked for Anaconda Python instead of MSYS2 and POSIX Windows Python, so MSYS2 packages were not detected there. The check now uses the MSYS2 flavors.
Package Support
-
Standalone: Added the missing
._uuiddependency for thepsycopg_c._psycopgextension module, like it already existed forpsycopg_binary._psycopg, so its dynamically imported UUID module is included. (Added in 4.3.2 already.) -
Standalone: Added
pyodbcto the modules that package system DLLs on macOS, so the dynamic library dependencies of its extension module are included. (Added in 4.3.4 already.) -
Standalone: Added missing implicit imports for
urllib3.contrib.resolver.factoriesandurllib3.contrib.resolver._async.factories, so the resolver implementations that these factories load dynamically are included in standalone builds. (Added in 4.3.4 already.) -
Standalone: Added support for the
vLLMpackage, including data files forflashinfer,cuda.tile, and thetemplatesdirectories oftorch._inductor.kerneland itsflexvariant, plus thetvm_ffiinclude directory andlibtvm_ffiDLLs. -
Standalone: Extended
vLLMand addedSGLangsupport, including the CUDA, NCCL, and NVSHMEM binding layers,cutlass, and kernel packages such asflash_attn,flashinfer,sgl_kernel,triton_kernels,deep_ep,deep_gemm,quack,xgrammar, andkernels, with their metadata, data files, CUDA and Triton kernel sources, and*.jinjachat templates. -
Standalone: Added support for the
tritonpackage, including implicit imports for its backends, data files for the AMD and NVIDIA backends and theirdriver.c, Python headers for in-place C compilation, and a replacement fortriton_keywith the value of the build environment. Thecuda_utilsmodule is not covered yet. -
Standalone: Avoided including the Qt plugins and fonts of non-headless
opencv-pythonwhen a Qt binding plugin is enabled, since they conflict with the binding's own Qt libraries, and added a warning recommendingopencv-python-headlessinstead. -
Standalone: Added support for newer
astropyversions. PLY parser construction methods now request frame locals through the newframe_localsconfiguration, generated lexer and parser tables are included as implicit imports and no longer written into the compiled program's directory, IERS data files are included, and the constants data modules use wildcard imports. -
Plugins: Added a
numbaplugin. It compiles the modules of thenumbapackage to bytecode, since Numba JITs functions of its own package even when the JIT is disabled, and leaves functions using the common Numba JIT decorators uncompiled when the JIT is enabled, plusstencildecorated functions always. The on-disk cache is disabled in standalone mode, where compiled functions have no file backing. The new--numba-enable-jitoption controls the JIT, defaulting tonoin standalone mode andyesotherwise. -
Standalone: Added the missing implicit import for
pydantic.type_adapter. -
Standalone: Added CUDA 13 and NVVM library paths for
nvidia, the runtime version library forcutlass, package configuration forhumming, and data files forflashinfer,sglang,torch, andvllm. -
Standalone: Platform backends of
pywebvieware now included by default and only backends unusable on the current platform are excluded, so new backends work without a Nuitka change. Added the .NET 4.6.2 webview DLLs and updated the EdgeChromium native path workaround. -
macOS: Added PyQt6 support, including Qt library and translation target paths, framework detection, WebEngine process paths, and framework bundle normalization with Mach-O checks, helper executable rpaths, and version symlinks. Removed the PyQt6 unsupported check and filtered non-DLL Qt plugin files from wheels.
-
Standalone: Fixed the
vLLMlazy-loader mapping to track submodule attributes by submodule name with the attribute names as values, so lazy-loaded attributes are included correctly. -
Standalone: Added the
torchvision.extension._C_stableimplicit dependency, since it is a DLL named like an extension module. -
Standalone: Removed the unnecessary
pyarrow._*implicit imports fordask.dataframe, keeping only the substrait and parquet encryption submodules ofpyarrow, which are imported dynamically. -
Standalone: The
accessible_output2package configuration now includes the DLLs of itslibdirectory for Windows only, instead of including the directory as data files on all platforms, since that directory only contains Windows screen reader DLLs. -
Standalone: Added lazy loader support for
filelock, covering its lazy attributes, the_EXPORTSmapping offilelock._soft, and the async exports infilelock._soft._read_writeandfilelock._sqlite.filelock.asynciois now followed forfilelock3.15 and later.
New Features
-
Python 3.15: Pronounced Python 3.15 as officially supported. The recommended working version and the recommendation for commercial usage remain Python 3.13 until the bloat from deferred annotations is under better control.
-
Python 3.16: Added experimental support for Python 3.16, which is now partially supported. Initialization and opcode handling are covered, the
siteandverboseflags use the new configuration API, the new_Py_LATIN1_CHRdangerous macro is handled, andpython3.16shebangs are recognized. With 3.16a2 on Linux, most things work. -
Python 3.14+: Annotation source generation now handles shadowed builtins through
builtins, f-strings, lambdas with full parameter signatures (positional-only markers, defaults, keyword-only arguments,*args, and**kwargs), builtin and hard-import calls, unpacking, method operations, runtime paths, module attributes, class scopes, and raise branches. This allows more__annotate__functions to be generated from source instead of falling back to bytecode. -
Python 3.15+: Added support for module export hooks, where an extension module provides a
PyModExport_<name>orPyModExportU_<name>function returning a slots array, which CPython prefers over thePyInit_<name>entry point function, with the meta path based loader checking for it first and falling back toPyInit_. Modules from export hooks are created withPyModule_FromSlotsAndSpec, with aSystemErrorreported for hooks that fail without setting an exception or raise an unreported one, and a missing export function now gives anImportErrornaming both functions that were tried. (Added in 4.3.1 already.) -
OpenBSD: Added onefile mode support, removing OpenBSD from the list of systems where only standalone mode was supported. (Added in 4.3.2 already.)
-
Python 3.14: Remote debugging via PEP 768 is now disabled in compiled programs, so another process cannot attach through
sys.remote_execand execute code in them. The new--devel-remote-debugoption keeps the interface enabled for development. (Added in 4.3.5 already.) -
Python 3.12.5+: The Python build script now builds Tcl/Tk 9 from source with
--enable-zipfs, so Tkinter can use the DLL overlay path and standalone distributions no longer need the many separate Tcl/Tk data files. Downloads are shared between Python and Tcl/Tk, and installation works for non-writable prefixes. The appended zip overlay is preserved when binaries are stripped or their RPATHs are changed. -
Plugins: Added the
onFinalResultFinishedhook, which runs after allonFinalResultmodifications, so plugins can inspect the final binary, e.g. to calculate its checksum. (Added in 4.3.5 already.) -
Onefile: Added an
overlayresource mode, which attaches the onefile payload to the end of the executable instead of embedding it as a constant blob. It is used automatically on Windows when the payload would exceed the PE file size limit. The bootstrap maps its own executable, uses the certificate table when the file is signed to find the payload end, and unpacks from there. Currently only Windows onefile mode supports this, as other OSes don't encounter these limits. -
Onefile: Enhanced payload caching. The payload now starts with a table of contents containing checksums, sizes, and symlink and executable flags, so unpacked files can be validated without decompressing the payload. The CRC32 is encoded in the file modification time, and the deprecated
--onefile-as-archiveoption is now a no-op and hidden, with the separate compression cache and its--disable-cache=compressionname removed. -
Plugins: The
source-inclusionplugin now supports module mode. Since there is no unique main program,--source-inclusion-mainnames a program that exercises the compiled module, and the recorded source hook is installed before the top-level module body. Thedashpackage configuration now warns whendash.long_callbackusesinspect.getsource()for caching and recommends the plugin and option. -
Plugins: The
tk-interplugin now detects Tcl/Tk libraries embedded in DLL zip overlays, avoids packaging duplicate data directories when they are used, and sets or clearsTCL_LIBRARYandTK_LIBRARYaccording to where the libraries were found. Tk version detection on Python 2 now uses the correct module name. -
macOS: Added support for C backtraces with
--experimental=dump-c-tracebacks, including Mach-O symbol lookup and signal-context unwinding on x86_64, i386, and ARM64. -
UI: Added a
barflowprogress bar backend, selectable with--progress-bar=barflow. It is not selected byauto, which still preferstqdmand thenrich. -
Targets: Added the experimental
nuitka.targetspackage with ABI specifications for the native platform,wasm32-wasi, andi686-w64-mingw32, carrying Clongandlong longsizes, pointer size, binary format, RPATH usage, and Python digit limits.--targetnow defaults tonativeand accepts aliases such aswasi,wasm32-wasip1,win32, andwindows-x86, and unknown targets are rejected. Code generation takes C type limits from the selected target instead of the running Python. -
WASI: Added experimental cross compilation and runtime support for
--target=wasm32-wasi. It uses Clang mode with WASI SDK 20, downloaded and cached unless--wasi-sdk-pathis given, and a WASI CPython prefix, downloaded and cached unless--wasi-python-prefixis given. Binaries get the.wasmextension and are run through Wasmtime 50, with DLL detection and extension module loading skipped for the target. -
Win32: Added the experimental
i686-w64-mingw32cross target.--win32-python-exestarts the 32-bit Windows Python as a broker to query its prefix, include path, DLL, and static library, translating paths withwslpath,winepath, or relative to the executable. Produced binaries are run directly on Windows and WSL, and through Wine on other hosts. Non-Windows hosts require--zig. -
Targets: Compile-time evaluation now runs in the target Python through a framed JSON broker. Hard import constants,
sys.version_infovalues, andimportlibpackage discovery use the target, so version-dependent constants and module availability follow the target rather than the host. Targets without DLL support, such as WASI, skip DLL detection entirely. -
NoGIL: Added experimental support for compiling and running with free-threaded Python builds. Compiled types use per-free-list locks, list operations use critical sections, dictionary helpers have borrowed and new-reference variants for free-threaded builds, frame caches are thread safe, and pending calls are processed at thread checkpoints. Testing is ongoing, with Python 3.13t best covered so far.
-
UI: The recommended Python version for commercial usage was bumped to 3.13.
-
Debugging: Added
--debug-thread-sanitizerfor GCC and Clang on Linux and macOS, passing-fsanitize=threadto the compiler and linker and keeping debug information. It cannot be combined with--debug-address-sanitizerand is not available on Windows. For compiled extension modules, the host program must preload the ThreadSanitizer runtime, e.g. viaLD_PRELOADon Linux orDYLD_INSERT_LIBRARIESon macOS. -
Plugins: Added a
frame_localsanti-bloat configuration item anddecideNeedsFrameLocalsProxyplugin hook, which decide per function or class whether a frame locals proxy is needed, using qualified name patterns. The locals struct is still only published in the frame when required, keeping the normal case faster and more compact. Added aQualifiedNamebase class so function and class qualified names can be matched like module names. -
Plugins: Added a non-deployment handler for
picklethat turns anImportErrorraised while loading pickle data into aRuntimeErrornaming the missing module and recommending--include-modulefor it. The standard library package configuration was also split into shared, Python2-only, and Python3-only files, so Python3 compilations no longer load the Python2-only parts. -
Python 3.15+: Added support for the
sentinelbuilt-in, including the correct__module__value for sentinels created in compiled code, type shape and attribute knowledge, and PGO type checks. -
Module: Added
--module-force-namespace, which requires a compiled module to be loaded below the given namespace, with an empty namespace requiring top-level loading. This makes__name__and__package__compile time constants and allows more optimization in module mode. -
Container: Added
--container-python-versionto build and use a different Python inside the container, plus--container-requirementsand--container-wheels-dirto install packages before compiling. Project requirements and options are now checked against the container environment, with project parsing deferred to the in-container Nuitka. A CentOS Stream 8 container definition is also included. -
Plugins: Added
--gi-versionto select the version of a GObject Introspection namespace when multiple versions are installed. Versions are propagated from parent namespaces and dependencies, and used for typelib data files, dependencies, and platform specific namespace imports. -
UI:
--lto=autonow detects-fltoand-fno-ltoflags inCFLAGS,CCFLAGS,CXXFLAGS, andLDFLAGS, and resolves accordingly. Conflicting flags in the environment, or conflicts with an explicit--lto=yesor--lto=no, are now errors. -
UI: Added the
no_unraisablePython flag, which compiles out Nuitka's own unraisable exception writes on all versions and ignores CPython internal unraisable writes on Python 3.8 and later. -
PGO: Added standalone and app-dist profiling support. The distribution is prepared before the profiling run and reset before the final compilation pass, and MSVC PGD/PGC files are kept in the build directory.
-
Plugins: Added a
plugin_priorityattribute to request that a plugin is called later, e.g. for signing after compression. Active plugins are sorted stably by it, keeping the standard and user plugin order for equal priorities. -
Plugins: Added a
downloadssection to the Nuitka Package Configuration, which downloads files into the Nuitka cache for inclusion, and added thetiktokendata file download and cache environment setup. -
Plugins: Added CuTe DSL support to the
numbaplugin, keeping functions decorated withcutlass.cute.jitandcutlass.cute.kerneluncompiled since the CuTe DSL rewrites their__code__. Decorator matching now uses fully qualified names resolved through import statements, so aliases likefrom numba import jitare recognized, and Numba nested functions now work too. The JIT disable reason now distinguishes an explicit--numba-enable-jit=nofrom the standalone default. -
Plugins: Replaced the uncompiled decorator name hook with JIT decorator registrations that can request bytecode or run a callback with the decorated function's source range. Added
AstUnparsingfor Python versions withoutast.unparse, preserved source line numbers for bytecode functions, and registered Triton, CuTe, and CUDA tile decorators for source inclusion. -
Plugins: Added support for plugins that replaced other plugins to recognize the name they were enabled with, before renames are applied, through
getPluginsEnabledUnrenamed. -
Distutils: Project requirement checks now work without
packagingorpip, by parsing PEP 508 requirements and PEP 440 versions with a fallback implementation, e.g. in auvvirtualenv. Unmet requirements are reported as unsatisfied rather than uninstalled. -
Plugins: Added experimental
cutlass.cute.experimental.jitandcutlass.cute.experimental.kernelandtriton.experimental.gluon.jitdecorators, handled like their stable counterparts for bytecode and source inclusion. -
Debugging: Added
--devel-show-slow-paths, which reports runtime slow paths taken by generators, coroutines, and async generators to stderr. The previous disabled trace blocks were replaced with tracing macros. -
UI: Command line help now uses descriptive metavars for module patterns, paths, choices, packages, directories, and plugin options, and no longer shows metavars for boolean flags. Always-enabled package-support plugin options are also shown in the default help.
-
macOS: PySide6 applications in app-bundle mode now load the bundle icon into
QApplication, using the icon filename for the plist. A standalone macOS test covers the icon.
Optimization
-
Type descriptions are now exported uniformly as pointer variables and declared only in the generated module that uses them, so adding a description no longer changes the shared
__constants.hheader and thereby avoids rebuilding unrelated modules. (Added in 4.3.1 already.) -
Scons: Fix, the LTO job count was part of the C compilation flags, so the number of CPUs became part of the
ccachekey and made caching less successful. C compilation now uses plain-flto, while the job count remains in the linker flags where parallel LTO matters. (Fixed in 4.3.5 already.) -
Scons: Constant blob symbols are now marked with hidden visibility on ELF, since they are only referenced directly and were otherwise exported with
-export-dynamicfor no reason. (Added in 4.3.5 already.) -
Scons: Include paths below the Nuitka and Python installations are now replaced with build directory local symbolic links of stable names, and paths outside these roots get stable derived names. This keeps compiler command lines identical across machines, allowing
ccacheresults to be shared and builds to be more reproducible. -
Imports: Compiled modules and startup modules such as the main module,
__parents_main__, multiprocessing, joblib, and anyio helpers now load through their loader entries directly.ModuleSpecvalues carry a loader instance, module directory and file values use the runtime module name when available, and repeatedfindEntrylookups and extra C-API calls during startup are avoided. -
Variables: Value traces now detect more local variables as definitely initialized, and unused variables are removed from local dict mappings, e.g.
__class__after itssuperusage disappears, reducing unbound-local error handling and locals dict overhead. -
Code Generation: The cleanup exception handler is now an always-false conditional block rather than a
gotoand label, removing an unnecessary jump from the normal path of generated code. -
Code Generation: Cleanup code for newly created locals dictionaries now uses the scoped
withCleanupFinallyhelper, so the dictionary is released by the local exception handler instead of being kept in the outer cleanup scope, and the created dictionary variable is used consistently when the dictionary already exists. -
Subscripts: Constant subscripts of tuples and tuple subclasses, e.g. named tuples, now use a direct table access fast path, with
IndexErrormessages matching tuples. -
Hard Imports: Added hard import nodes for
os.path.join,importlib.resources.open_binaryandopen_text, theirimportlib_resourcesbackport variants, and runtime-relative paths, plus a vectorcall-basedCALL_FUNCTION_WITH_ARGShelper used byprintandzip. The generated resource calls use the module of the recognized call, so the backport variants import fromimportlib_resources. -
Optimization: More C-API calls were replaced with Nuitka helpers, including
CHECK_AND_CLEAR_ATTRIBUTE_ERROR_OCCURREDandCHECK_AND_CLEAR_TYPE_ERROR_OCCURRED, reducing temporary exception handling in generated code. -
Optimization: All direct CPython dictionary access in Nuitka-owned code now goes through the
DICT_helpers implemented directly on thePyDictObjectstate, so dictionaries can still be freely passed between Nuitka and CPython. AddedDICT_SET_ITEM_STRING,DICT_REMOVE_ITEM_STRING,DICT_GET_ITEM_STRING,DICT_UPDATE_FROM, andDICT_UPDATE_FROM_SEQ, replacingPyDict_SetItem,PyDict_DelItem,PyDict_GetItemString,PyDict_Merge,PyDict_MergeFromSeq2, andPyDict_Updatein the loader, exception state handling, built-ins, attributes, keyword arguments, frame locals, and deepcopy. -
Optimization: Added dictionary set implementations without Python C-API calls for all supported versions, generated from a template and using dedicated lookup functions instead of the CPython lookup function pointers. Added
DICT_SET_ITEM1, which consumes the value reference on success and failure. -
Optimization: Used
CHECK_IF_TRUEfor truth checks andRICH_COMPARE_*_NBOOL_*for comparisons, compared withPy_Nonedirectly sincePy_IsNoneis not available on all supported Python versions, and usedNuitka_PyLong_AsLongAndOverflowinsys._getframemodulename, avoiding calls into the Python C-API implementation. -
Optimization: Fetched exception checks now carry the unlikely branch hint, so the C compiler does not treat error exits with the same weight as the normal path.
-
Python 3.10+: Added a dedicated
NameErrorcreation node, so manually created exceptions support the keyword-onlynameargument and carry thenameattribute. -
Optimization: Type lookups on Python 3.11 to 3.15 now read CPython's per-interpreter lookup cache directly, avoiding a call into the Python DLL on Windows, while free-threaded builds and Python 3.16 keep using
_PyType_Lookup. This reduceswithstatement overhead by about 15%, since its__enter__and__exit__lookups commonly hit the cache. -
Optimization: Added
Nuitka_PyLong_AsSsize_t,Nuitka_PyLong_AsSsize_tAndOverflow, andNuitka_Number_AsSsize_t, replacing the Python C-API equivalents in slicing, subscripting, list indexing, andintconstruction, with the version-specific overflow and type error messages preserved. -
Strings: Added specialized operation nodes for the
casefold,isascii,isdecimal,isidentifier,isnumeric, andisprintablemethods ofstr, so calls to them compile to direct helpers instead of generic method calls. -
Variables: Added
getUnboundLocalErrorMessage, which uses the short message unless full compat mode is enabled, avoiding the code-object based message construction. Frame-less outline code such as comprehensions now generatesNuitka_FormatUnboundLocalErrorinstead of asserting that a frame based error is available. -
Variables: Module variable reads now use specialized checked, checked-global, and infallible accessors, with the error handling moved into the accessor. This reduces branches and temporaries, and lets the C compiler inline an accessor that is used once without forcing inline code at every use.
-
Variables: Added an infallible module variable accessor variant for the experimental
no-module-globals-deletedmode. Escaped module variables that are still known to be assigned are tracked in value traces, so reads after an escape can use the infallible accessor, and non-deployment builds check for an unexpectedly deleted global and exit with an error instead of returningNULL. -
Trace Collections: Trace collection merging now copies the first collection's dictionary and uses lists instead of sets for the normally small version collections, avoiding generator and set objects and speeding up compilation by about 5%.
-
Trace Collections: Merge trace flattening and deduplication moved to the collection layer and only happens when a nested merge is present, with a direct two-trace merge path. The loop dependency and cached must-have-value state of merge traces are now a single state field, and single-predecessor behavior moved into a mixin, reducing per-merge memory use and speeding up decisions.
-
Trace Collections: The value trace implementation moved to
nuitka.optimizations.value_traces, with generatedValueTraceMerge2throughValueTraceMerge6classes that use direct trace slots and unrolled hot methods. Nested merges are flattened through dedicated helpers, and two-trace merges are special-cased, saving memory and avoiding loops for the common merge sizes. -
Frame Caching: Compiled frame caches now use a
Nuitka_FrameCacheHandlewith an in-use flag, falling back to an uncached frame when another call owns the cache. Idle cached frames drop their hidden locals and are untracked by the garbage collector, and ownership is tracked for normal returns, exception exits, and generator frames. -
Scons: Scons builds now use a generated
source_files_index.txtcreated after generated sources are complete, instead of scanning source directories, so the backend, offsets, and onefile builds use the precise list of generated files and avoid directory scans. -
Trace Collections:
mustHaveValuequeries now pass a per-query context that caches loop dependent merge results, so shared trace subgraphs are not revisited exponentially. Results that depended on a loop recursion assumption are discarded when the assumption no longer applies. -
Trace Collections:
isUnchangedResumeTracequeries now cache their answers per query, so shared merge traces are not traversed repeatedly. The trace graph does not change during a query, so the cached answers stay valid. -
Dictionaries: Dictionary mutation helpers now pass the thread state through, so watcher callbacks and free-threaded operations can use it. Added hash and equality supplied lookups for cache dictionaries and free-threaded set and delete implementations, and preserved watcher bits in version tags.
-
Dictionaries: Added
MAKE_DICT_FROM_KWARGSand used it in the generated call helpers, replacing the repeated private_PyDict_NewPresizedand set loop for keyword arguments. -
Dictionaries: Added
MAKE_DICT_PRESIZEDand a unicode-only variant, so dictionaries with constant string keys use a compact keys object, and used the unicode variants at C call sites with known string keys. The keyword argument dictionary is pre-sized and uses the unicode-only keys object. -
Dictionaries: Added untracked set variants that skip garbage collection tracking and watcher notifications for Nuitka-owned dictionaries, and used them for dictionary creations and constant caches, also using value reference ownership transfer.
-
Dictionaries: Added constant blob tags for empty dictionaries and for dictionaries and frozendicts with unicode-only keys, and the blob decoder now uses the pre-sized dictionary helpers.
-
Dictionaries: Dictionary and frozendict copies now use the pre-sized dictionary helpers, with the unicode-only keys variant when possible.
-
Dictionaries: Added infallible variants of the dictionary item insertion helpers for keys known to be hashable, and used them during dictionary creation to skip result checks and error exits. This generates more compact code with less local churn for the C compiler, reducing the generated C code size for large dictionaries.
-
Dictionaries: Extended the infallible dictionary item insertion helpers to dictionary copying, locals, module registration, deep copy, and frame locals.
Nuitka_SetModuleandNuitka_SetModuleStringnow return void. Generated dictionary update and set code, and locals assignment for known dictionary shapes, use the infallible variants too, adding checks to previously unchecked locations. -
Optimization: Tuple and dictionary untracking is now implemented locally instead of using private CPython garbage collection API calls, making garbage collection of containers faster.
-
Optimization: Added
LIST_DEL_SLICEfor exact list slice deletion, with the same index clamping asPyList_SetSliceand deferred reference releases, and used it forsys.pathand joblib argument cleanup in the main program. -
Imports: Added dedicated nodes for
sys.moduleslookups,get,pop, assignment, and deletion, using the loader entry as the source of truth for included modules.importlib.reloadis supported for private modules, which are kept out ofsys.modulesand marked in the compilation report. -
Standalone: Copied ELF and Mach-O shared libraries and extension modules are now stripped of symbols unless
--unstrippedor a debug or runtime trace mode requires them, reducing the size of standalone distributions. Knownstripfailures leave the file unstripped, and ELF files whose load segments would no longer be aligned after stripping are restored to the unstripped copy. -
Optimization: Specialized attribute calls now compute the replacement expression immediately with
computedExpressionResult, unusedstr is bytesbranches were removed, and a bug that reported too many generated base mixin aliases due to incorrect name matching was corrected. -
Optimization: Added a dedicated
delattrnode and specializedgetattr,setattr,delattr, andhasattrwith constant attribute names. CPython 3.11+ error message details for non-string attribute names are reported, constant-namesetattr/delattrcalls are reduced to attribute statements when the result is unused, and compile-time constant type helpers were added. -
Optimization: Exact type shapes are now marked hashable, and the default
hasShapeTypeExactpredicate was added, so type objects can use the hashable fast paths. -
Windows: The onefile splash screen is now implemented in C instead of C++, so onefile builds no longer require a C++ compiler for it, and the unused
Shlwapilibrary was dropped from the link libraries. -
Python 3.11+: Attribute lookups and method calls on instances with managed dictionaries now read CPython's inline values and cached keys directly, avoiding creation of an instance dictionary. Attribute errors also get the
nameandobjdetails attached, matching CPython. -
Optimization: Thread state lookup on Python 3.12+ now reads the runtime or thread-local storage directly where safe, avoiding a C-API call for every
PyThreadState_GET. -
Optimization: Loop lookup now continues through outline functions instead of stopping there, while still stopping at real function bodies, so loops are no longer missed at outline boundaries.
-
Optimization: Node classes now reject redeclared
__slots__andnamed_children, and dead slots were removed, reducing memory use and preventing inconsistencies. -
Optimization: Module trees are now frozen before code generation, and the GC thresholds are raised for large compilations, so per-module objects are collected before repeated full collections. This gives large speedups for compilations past 20K modules and modest gains for intermediate ones.
-
Optimization: Recursive exception normalization now uses the single-class exception matching helper for
MemoryErrorinstead of thePyErr_GivenExceptionMatchesC-API call. -
Optimization: Quick call helpers used by each module are now tracked and declared only in that module's generated code instead of a global
__helpers.h, so adding or removing a module-specific call signature no longer invalidates the C cache for unrelated modules. -
Optimization: Module lookup by name now uses a name-indexed dictionary of active and done modules instead of scanning both sets for every lookup.
-
Optimization: Added a hard import node for
pkgutil.iter_modulesthat enumerates compiled packages from the loader entry table directly, and usespkgutil.get_importerfor regular paths. Internal loader modules stay out of thesys.pathhook.import pkgutil import some_package list(pkgutil.iter_modules(some_package.__path__))
-
Optimization: Dictionary item lookups now use the cached string hash and the concrete string hash slot for exact string and unicode keys, avoiding generic hash dispatch in the common case.
-
Optimization: General function calls now avoid tuple creation for zero and one argument calls, call compiled functions directly through their C entry points, and use the compiled function call helpers for Python functions before vectorcall.
-
Optimization: Iterator direct access replacement now records usages, releases, and deletions on the assignment trace and rewrites them after the pass instead of mutating the tree during iteration. The iterated-value temp variable is only allocated when direct access is possible, so cloning during trace collection produces a working state.
-
Optimization:
os.path.joincalls now collapse a single exact string argument and drop preceding relative paths once an absolute path is seen. The remaining calls use the generic C API code generation. -
Optimization: Added
Nuitka_Object_IsSubclass()with fast type and Python 2 old-style class paths, falling back to abstract subclass checks. It is used for exception matching,issubclass, and unbound methods, and__subclasscheck__is in the default constant population. -
Optimization: Unpacking checks now use the iterated value directly for too-many-values checks, with
UNPACK_ITERATED_CHECKandLOOKUP_SUBSCRIPT_CONST_FOR_UNPACK. Iterator shapes and direct subscript unpacking were improved, including version-specific too-short and too-many error messages.try: a, b = [1, 2, 3] except ValueError as e: print(e) # too many values to unpack (expected 2) try: a, b = [1] except ValueError as e: print(e) # not enough values to unpack (expected 2, got 1)
-
Optimization: Added tri-state
any()folding for generic, list/tuple, and range iteration handles. Exact string, bytes, bytearray, and range shapes are now treated as non-raising forall()andany(). -
Optimization: Function inlining is now scheduled as delayed work instead of mutating the tree during trace collection, and call details are derived from the call node.
-
Optimization: Exposed
LOOKUP_SPECIAL_NO_ERROR()from the attribute helpers for reuse, avoiding duplicate special lookup code. -
Optimization: Added
Nuitka_PyObject_LengthHint()with the CPython semantics, avoiding a C-API call for length hints. -
Optimization: Added
Nuitka_PySequence_Check()implementing CPython's sequence check without a shared library call, used for iteration, exception group notes, and in-place sequence additions.
Anti-Bloat
-
Packages: Avoided following
z3fromtilelangand fromtorch.fx.experimental, where it is only checked for being installed, or used for debug translation validation that serving does not need. -
Packages: Avoided
cythonusage inzmq.backend.cython._zmqwhensetuptoolsis not used. -
Triton: Replaced the
triton_keycomputation with the value of the build environment. -
Packages: Allowed
setuptoolswhere Triton kernels and in-place extension builds require it, and droppedtilelangand heavy test-onlytorchmodules from serving builds. -
Packages: Avoid docstring dependencies and set
TORCH_COMPILE_DISABLEfor vLLM serving, worked around emptyentry_points()truth values, and replaced the forked subprocess model inspection invllm.model_executor. -
Telethon: Disabled docstrings for
telethonand avoided following its optionalPILdependency intelethon.client.uploads, which is only used for image thumbnails. -
Dill:
dillremovals fordepyfandtorchare now only applied when thedill-compatplugin is not enabled, thedatasetsserialization check is a warning instead of an error, and thesglangdatasets removal only applies to direct imports. -
Packages: Replaced the CLI entry point import of
httpxandhttpx2with anImportErrorand avoided following their_mainmodules, since the command line support pulls inclick,rich, andpygmentsunnecessarily. -
Packages: Replaced the
pydoc_datamodule docs import inpydocwith anImportErroron Python 3.13 and later, removing the module documentation data used by the doc locator. -
Packages: Avoided the macOS, Windows, and OpenSSL-specific implementations of
truststoreon platforms where they are not used. -
Packages: Avoided following
asynciofromtyping_extensionsbefore Python 3.12, where it is only used for deprecated coroutine wrappers. -
Packages: Fixed the
zope.interfaceanti-bloat rules for its test decorators, which replaced the decorated function with one returningNone. The decorators now keep the decorated function. -
Dask: Avoided auto-following
distributedfrom thedaskpackage, while allowingdask.distributedto follow it again, since that shim requires it. Anallowvalue now overrides a parent module'sno-auto-followrule, and a module's own submodules are no longer suppressed. -
Dask-ML: Avoided importing
distributedonly for its version indask_ml._compat, and avoided the eager model selection import. -
Packages: Anti-bloat configuration matching now applies
frame_localspatterns as part of the filter, restrictsconditional-auto-followto modules that can add suppressed namespaces, and uses the common configuration helpers for package system DLLs, pre/post import code, and environment overrides. -
Dask: Avoided auto-following
distributedanddask.distributedfromfsspec,joblib, andxarray, with helpful errors when their optional Dask transaction or backend is used withoutdistributed. -
Packages: Removed the
_jsonavoidance rules forjson.decoder,json.encoder, andjson.scanner, since the fallback pure Python implementation can be much slower and the performance loss would not be discovered by users. -
Anti-Bloat: Fixed the
_distutils_hackreplacement typoMonetoNone, so the distutils warning function is actually disabled.
Organizational
-
Debian: Fix, the
py2dscbased Debian packaging on mounts that report all files as executable, e.g. container builds using Windows shares, gave the copied Debian config files the executable bit, and debhelper then executednuitka.installinstead of reading it, which failed. The executable permission is now removed from the copied files, keeping onlyrulesexecutable. (Fixed in 4.3.1 already.) -
Docs: Documented Clang as the default compiler on OpenBSD in the Developer Manual, matching the compiler settings that already forced it there. (Fixed in 4.3.2 already.)
-
Docs: Expanded the Developer Manual's CPython API to Nuitka helper mapping table with more helpers, ownership and precondition details, generated helper families, and version-specific internals for 3.13 and 3.14.
-
Actions: Fix, the retry for the initial compilation that downloads compilers was only done on macOS, so transient runner failures on other systems failed the workflow. It is now used on all operating systems, and the produced files are cleaned up before each attempt. (Fixed in 4.3.3 already.)
-
UI: Error and warning messages now name the actual compilation mode, e.g.
apporonefile, instead of sayingstandaloneas the problematic part of the mode. Or package rather than module mode. -
Quality: The pre-push hook now also runs
codespellon changed Python, C, RST, text, template, and Markdown files unless disabled at install time. -
Quality:
autoformatnow sorts, de-duplicates, and fillsspell-checker: ignoreword lists, merging consecutive plain lines up to the line length. -
Quality: Private pip tools now fall back to the private pip space when an installed package raises any exception during import, not only
ImportError. When the private space contains bothsite-packagesanddist-packageslayouts, the layout of the Python that runs pip, and the one a tool binary belongs to, are preferred onPYTHONPATH. -
Debugging: GCC and Clang builds now enable
-Wshadow, so accidental variable shadowing is detected during regular builds instead of only in later MSVC CI runs. -
Zed: The editor configuration now excludes generated and build artifacts from file scanning and restricts basedpyright diagnostics to open Python files.
-
Watch: The watch tool now passes
--update-check=neverto Nuitka, avoiding update check noise for its test compilations. -
Watch: The watch tool now records the case version and case file hash in its reports, so a changed version triggers recompilation. Build directories are removed after execution via
--remove-output. -
Quality: Updated all tools to the latest versions, including
black26.10.1,isort9.0.2,yamllint1.38.0,clang-format23.1.3,codespell2.4.3,pylint4.1.3, andastroid4.3.4, and split thejsonschemaandtomlirequirements by Python version. -
Actions: Updated the GitHub Actions to
actions/checkout@v7,actions/setup-python@v7, andactions/upload-artifact@v7for Node.js 24 support, and replacedilammy/msvc-dev-cmdwithTheMrMilchmann/setup-msvc-dev@v4. -
Quality: PyLint is now used from the global environment when the installed versions of
pylintandastroidmatch the required ones, without prompting for downloads. The existing private pip space is consulted even without download permission, and a missing PyLint is now an error instead of a silent success. -
RPM: Fix, the spec file conditions for Fedora and RHEL Python2 packages were also true on openSUSE 16, where the Fedora and RHEL macros are unset. The conditions are now guarded so they only apply when
suse_versionis below 1600. -
Quality: Consolidated the MSVC warning flags so
/W4, the intentional-construct suppressions, and/WXare applied as a set when C compiler warnings are made errors in debug mode, and-Wno-unused-but-set-variableis selected by compiler mode and version. -
Debian: Added
python-atomicwritesto the build and runtime dependencies wherebase-filesdoes not provide it, and moved the source copy and permission fixup for Debian builds into shared code used by both the regular and the mentors packaging, so permission fixups also apply to mentor builds. -
Debian: The WSL clock is now synchronized before a Debian package build starts, since clock skew breaks builds and package repository signatures.
-
Quality:
codespellnow accepts the git arguments of the other quality tools and uses the git paths by default, and shell pattern expansion is shared throughresolveShellPatternsToFilenames. -
Quality: The
-Wcast-function-type-strictsuppression is now only used where the compiler actually supports the warning instead of for all Clang versions, avoiding warnings on older Clang. -
Quality: Pyright now targets Python 3.15 and ignores vendored
inline_copycode. -
Actions: The testing workflow now uses
actions/setup-pythonfor Python 3.15 on Linux too, and includes Python 3.15 in the macOS, Windows, and Windows ARM matrices. -
Release: The OSC upload now runs the documentation linting through the repository tool with download support, and builds the source distribution in its virtualenv, so it no longer depends on the system installation. The RPM source archive name now uses the lowercase
nuitkaprefix. -
Quality: The VS Code, Zed, and Ruff configurations now exclude and ignore the
testsdirectory, instead of only the CPython test copies. -
Quality: The clangd checker now uses the private pip space binary, disables background indexing, has a check timeout, and reports internal clangd failures. The
.clangdconfiguration is generated independently of compiler detection and no longer defines the unused WindowsUNICODEmacros. -
Project: Expanded the agent rules and Developer Manual with architecture, planning, comment and docstring conventions, Python 2 compatibility, and verification guidance, and updated the OpenCode watcher configuration to ignore test copies, build artifacts, caches, and virtual environments.
-
Quality: Added Windows
.cmdlaunchers for the quality and code generation scripts, which locate Python throughPATHor the VS Code alias file, and the ruff checker now accepts explicit paths or defaults tonuitka/. -
UI: Corrected the inverted help text of the
--not-installed-is-no-erroroptions in the PyLint and Pyright checkers, which described them as insisting on the tools being installed. -
UI: Installed Python interpreters for the same version are now sorted with 64-bit ones first, detected by asking each candidate for its pointer size, and path order is kept for equal architecture. Tools that select an installed Python, e.g.
nuitka-watch, could previously pick the 32-bit installation when both architectures were installed, which has less address space and for which some packages provide no 32-bit wheels. -
Quality:
codespellnow ignores third-partyinline_copyfiles, and no matching files are reported as an informational message instead of an error. -
Watch: The watch tool can now automatically accept plugin influence records, removed modules and distributions, removed search paths, and removed
Pipfile.lockpackages, and the new--accept-alloption enables all automatic acceptance options. -
Release: The release and PyPI scripts now install
restructuredtext_lintandpygmentsinto the private pip space when needed, with--assume-yes-for-downloads, instead of requiring the development requirements. -
Watch: The watch tool now detects whether the watched Nuitka is standard or commercial and keeps benchmark results in separate directories, so runs can co-exist in the same repository.
-
Quality:
blacknow skips_2.pyand_27.pytest variants automatically, so new Python 2 tests need no explicit skip entries. -
Quality: The
ruffchecker now runs from the private pip space with version validation and Windows support, instead of requiring a globally installedruff. -
Quality: Launcher scripts for quality and testing tools now return the result of
mainthroughsys.exit, so failures are visible to CI and callers instead of always exiting successfully. -
Quality: A pre-commit check now rejects accidental executable bit changes unless explicitly marked as intended with
GIT_COMMIT=unchecked, and the.cmdhelpers were normalized to mode 644. -
Quality: The Zed formatter now goes through Git's POSIX shell wrapper, which uses the
.cmdlauncher on Windows and the native script elsewhere. -
Watch: The watch tool now records a hash of
NUITKA_EXTRA_OPTIONSin the report and recompiles when it changes, falling back to the recorded command line for older reports. -
Watch: The watch tool now sets
LC_ALLandLANGtoCandVSLANGto1033, so compiler output is not localized andpipenvdoes not warn about a missingLANG, making compilation reports reproducible regardless of the developer's locale. -
Project: Clarified the comment and work-in-progress rules to preserve existing TODOs, disabled code, and commercial plugin replacement-hook comments, while still removing debug prints and dead code.
-
Project: Clarified that every file in
.agents/rules/must be read and the list updated when rules change, and that skills are referenced by name rather than path. -
Quality: The
clangdchecker now includesnuitka/pluginsby default and skips Windows-only sources by folder, prefix, or suffix on other platforms.
Tests
-
Windows: Fix, runtime tracing used the Dependency Walker module tree, which resolves names through the search order and includes delay loaded DLLs that were never used, so files could be reported as loaded that never were. It now uses only the profiling log, with
PATHsearch disabled via a Dependency Walker configuration file, which also makes the tracing substantially faster by not scanningPATH, and the GitHub Actions workarounds for modules found there are no longer needed. (Fixed in 4.3.2 already.) -
Ignored GCC LTO
makewarnings about files with modification times in the future in output comparisons, since they are caused by clock skew in the environment and are not relevant to the test result. (Fixed in 4.3.5 already.) -
The test runner now records the current test and marks it as failed when an error is reported through the runner code separately, so such failures are no longer missed.
-
Windows-only tests are now recognized by their
Winorwindows_name prefix and skipped on other systems, instead of listing every such test explicitly. -
Extended the nested namespace package tests to cover
pkgutil.iter_modulesandpkgutil.walk_packageson compiled packages inside namespace packages. -
Extended the Python 3.14 annotation tests to cover
annotationlib.Format.FORWARDREFcalls on class and method__annotate__functions. -
Extended the power operator tests with a literal base to cover underflow and subnormal results at run time.
-
Tests now honor
--mode=standaloneand--mode=onefilefromNUITKA_EXTRA_OPTIONS, removing them before passing options to Nuitka, so test setups can select the compilation mode without duplicating it. -
Added
nuitka.tools.testing.Coveragewith shared coverage command wrapping and publishing. Coverage data in SQLite format is now normalized in the database, and the CPython comparison, optimization tests, and test runner use the helper. -
The test runners now report whether the tested Python has the GIL enabled, so free-threaded interpreters are distinguishable in outputs.
-
Output comparisons now allow process ID differences in test support temporary names, matching the normalization already done for
/tmpand Windows temp files. -
The CPython results cache is now written to a temporary file and moved into place atomically, so a crash cannot leave a truncated cache file. Damaged cache files are reported and the results recalculated.
-
Reference count checks now use the object based count for free-threaded builds before Python 3.14, where deferred reference counting makes
sys.gettotalrefcount()unreliable, while debug builds with the GIL and Python 3.14+ free-threaded builds keep the faster total count. -
Output comparisons now strip the CPython 3.15 hint about site initialization being disabled from import errors, since Nuitka's subinterpreters inherit the delayed site import state.
-
Extended the dictionary structure tests with same-value update checks and C helper operations through a test plugin, and added a standalone concurrency harness that links the dictionary helpers and drives shared dictionaries from native threads.
-
The package test runner now falls back to
__init__.pyfor project options when a package directory has no__main__.py, uses per-test--mode=moduleproject options, and the top level attributes entry point is now actually tested. -
The PGO test runner now recognizes
--mode=app-distand locates the binary from the compilation report, and a standalone data files PGO test was added. -
The PyQt6 tests now use app distribution mode, the macOS skip was removed, and a Qt WebEngine frameworks regression test was added.
-
Test requirements now include the exception in the skip reason when a
nuitka-skip-unless-expressionfails, instead of always reporting that it evaluated to false. Tk standalone tests requireTkVersionso a partially removed tkinter is skipped with a useful reason. -
The scheduled kill callbacks in the CPython comparison now bind the process per iteration, so an old timer cannot kill a later process.
-
Output comparison now accepts
?line numbers in tracebacks, as produced by some generated code. -
Added coverage for attribute access on a walrus target used on the right side of a boolean operation.
-
Test discovery now detects macOS-only tests by suffix as well as prefix, and output comparison normalizes Windows 8.3 short paths in tracebacks and import output.
-
The CPython comparison now runs
.cmdwrappers on Windows and.shwrappers elsewhere when present, prefixes bare names, and removes the wrapper files afterwards. -
Output comparison now normalizes
cannot import namepaths independently of the exception class. -
Output comparison now normalizes escaped Windows paths in
WarningMessagereprs and the variable[N chars]truncation count.
Cleanups
-
Removed the obsolete
CodeObjectsMixinand itsgetCodeObjectHandlemethods; code generation now callsgetCodeObjectAccessCodedirectly. -
Moved the Python installation prefix helpers from
PythonVersionsinto the newPythonPrefixesmodule, removing cyclic dependencies. -
Progress: Progress bars now use a
withProgressBarcontext manager for C source generation, DLL copying, and DLL detection, ensuring they are closed on errors. -
Removed the fallback for unbound local errors without a frame, which is no longer reachable and now asserts instead.
-
LSP: Added missing includes and configured
.cand.hfiles as C in clangd, reducing spurious diagnostics. -
Removed the unused
DICT_GET_ITEM_WITH_HASH_ERROR0andMODULE_NAME0helpers, converting their remaining callers to the new-reference variants and updating the Developer Manual mapping table. -
Added
getPathWithForwardSlashesand use it for git paths, IDE configuration, and adapted Python header filenames, avoiding replacement of backslashes that are valid filename characters on MSYS2 flavor. -
Added
NUITKA_UNREFERENCED_PARAMETERmacro for intentionally unused C parameters and marked the onefile fatal error helpers and the corruption abort helpers as non-returning withNUITKA_NO_RETURN, dropping unreachable returns. -
The
PYTHONPATHseparator incallExecPythonnow usesgetEnvironmentPathAdded, so the platform path separator is used on Windows too. -
Python 2.6: Added
_PyObject_GC_IS_TRACKEDand_PyObject_GC_MAY_BE_TRACKEDequivalents, so GC tracking code no longer needs version-specific dummy checks. -
Warning filters for
DeprecationWarningandSyntaxWarningmoved intonuitka/__init__.py, so all tools importing Nuitka modules get them automatically, and thewithNoSyntaxWarninghelper was removed. -
Child processes now receive an explicit copy of the environment with added paths, using
getEnvironmentWithPathAdded,getPrivatePipSitePackagesEnvironment, andgetExecutablePathwithextra_dir, instead of temporarily modifyingos.environ. -
Moved the experimental feature indications into
nuitka.options.Experimental, a low-level module without dependencies, avoiding import cycles with distribution and execution helpers. -
Removed the
no-iterator-optimizationexperimental flag, which was never needed to disable the indexable iterator unpacking optimization. -
Built-in type method helper generation now uses versioned parameter specs collected in
Common, with version specific conditions in C and version specific specs in the attribute node templates. -
Cleaned up comments and docstrings across the runtime, freezer, installer, option, target, tool, and utility modules, in build and code generation code, in AST and optimization code, and in the plugin hook documentation, removing code narration, stale comments, and restatements of the code.
-
Generated classes and helpers no longer emit
Generated from ...boilerplate or duplicated method docstrings, and TODOs are kept in the templates instead of being generated into the code. -
Builtin keyword-only arguments are now passed as keywords to optimized builtin node constructors, and the
sentinelextractor maps itsreprargument to therepr_valuechild. -
Removed the duplicate Python2
bytes.decodespec. -
Further cleaned up comments and docstrings across optimization, tree, specification, and finalization modules, including the locals dictionary construction code and the slice shape mixin description.
-
Used the compile-time constant type accessor for unicode key checks and the shared
EllipsisTypefor pickle dispatch. -
The try/finally node builders now assert the Python versions they are used for, and the Python 3 path calls the common builder directly instead of going through the Python 2-only wrapper.
-
Future imports and the future spec are now restored and cleared in a
finallyblock after building a module, and otherRuntimeErrorexceptions are re-raised instead of being swallowed. -
Removed restating comments and replaced stale or overly long docstrings with concise descriptions of non-obvious contracts across the build system, C runtime, and code generation.
-
Parameter specs now validate that argument names are tuples or lists of strings, and the
splitlinesspecs were corrected to pass tuples. -
Attribute lookup helpers are now generated from a specialization template, so the duplicated lookup logic is maintained consistently. The generated bool and int helpers now match
hasattrsemantics, clearing onlyAttributeErrorwhere required and returning the documented values. -
Node classes now require all bases to be actual classes derived from
object, so slot checks apply to all of them. -
Removed stale tooling: the mercurial autoformat exclusion, the obsolete
macos_bundle_as_onefileschema entry, and theupdate-doc.pydocumentation sync tool. -
Added braces to C conditionals, removed duplicate checks after infallible dictionary updates, and dropped an unreachable global constant case.
-
Plugin YAML configuration values are now yielded only once per recursive lookup, and duplicate list entries are rejected by the schema.
-
Debugging: The experimental toggles that disable the vectorcall slot, vectorcall usage, and uncompiled function call optimization now consistently gate all their uses, and the manual vectorcall fallback was removed.
-
Enabled additional
ruffchecks for boolean simplification, collection construction, dictionary iteration, string prefixes, and static string splitting, and applied the mechanical fixes. -
Renamed
once_decoratortoonceDecorator, replacedre.Sandre.Mwithre.DOTALLandre.MULTILINE, and added the missingcompiled_module.hheader for IDE parsing of the module object layout. -
Removed dead clcache code.
-
Plugins: YAML configuration helpers now return
YamlConfigItemandYamlConfigKeyValuenamed tuples, theoptionssection uses a direct list of checks, andwhenis no longer accepted invariablesandconstantssections, since those are always defined and lazily evaluated elsewhere. The schema, formatter, and nanny plugin were updated. -
Removed disabled abort checks and an unused manual long-zero stripping helper, simplified a debug variable-merge assertion, and corrected the YAML inline-copy docstring.
-
The Python 2
execfileoptimization now usesmakeExpressionBuiltinsOpenCall()with all optional arguments instead of constructing the open call node directly. -
Plugins: Missing DLL checks now return a
MissingDLLDecisionwith tri-statedecideAbstain()and optional reasons fordecideYes(), instead of a bare tuple. -
Node classes now validate cloning interfaces:
named_childrenrequiresgetCloneArgs(),node_attributesrequiresgetDetails(), and required non-child parameters need details. Function and module cloning details were filled in, and unusedmakeCloneShallow()was removed. -
Removed the duplicate module-level
redactCommandLineArghelper and import it from the hooks module instead. -
Quality: Generated IDE-only include blocks now keep dependent includes after the prelude, a missing iterator include and the
FLY002ignore were added, andMAKE_LISTpreallocation is documented.
Summary
This release pronounces Python 3.15 as officially supported and adds initial, experimental support for Python 3.16, while continuing to close compatibility gaps for Python 3.14 and 3.15, including deferred annotations, template strings, exception message formats, and keyword argument errors.
Cross compilation is now possible on an experimental basis, with the new nuitka.targets package, the --target option for wasm32-wasi and i686-w64-mingw32, and a target Python broker for compile time evaluation. Compiled programs can also be built and run with free-threaded Python builds, which remain experimental.
Onefile mode gained an overlay resource mode that attaches the payload to the executable and avoids the Windows PE file size limit, and its payload now starts with a table of contents for validation without decompression. --module-force-namespace makes module names and packages compile time constants, and containers can now use a different Python version than the host.
Runtime compatibility was again improved for generators, coroutines, and async generators, which now keep their handled exception state and convert StopIteration subclasses, while coroutines and async generators also release their locals on return. Many reference counting, arithmetic, and C-API corner cases were corrected. Optimization work continues with faster dictionary operations, trace collections, frame caching, module loading through the loader entries, and more specialized generated calls.
Package support was extended for vLLM, SGLang, triton, astropy, and others, a new numba plugin handles JIT decorated functions and bytecode compilation, and PyQt6 now works on macOS.
All in all, Nuitka now covers a wider range of Python versions and target platforms than ever, with the experimental features laying the groundwork for the next release.
27 Nov 2026 11:00pm GMT
Django community aggregator: Community blog posts
Issue 365: PostgreSQL 19 Ships and Black Friday Deals
News
PostgreSQL 19.0 release notes
Postgres 19 shipped November 19. REPACK takes over from VACUUM FULL and CLUSTER, logical replication no longer needs a restart, and JIT is off by default. Check standard_conforming_strings before you upgrade, since it is now forced on.
Wagtail CMS News
Wagtail Space 2026: A journey to remember
Meagen Voss looks back at three online days: 682 signups from 50 countries, over 300 watching live, the State of Wagtail putting usage growth at 15 to 45 percent a year, and WWF consolidating its sites onto Wagtail for a 70 percent lighter page.
Updates to Django
Today, "Updates to Django" is presented by Raffaella from Djangonaut Space! 🚀
Last week we had 6 pull requests merged into Django by 5 different contributors - including 3 first-time contributors! Congratulations to Alin Morosanu🚀, Bhuvnesh Nama and Ahmed Lemine🚀 for having their first commits merged into Django - welcome on board!
- The undocumented
django.contrib.sessions.backends.file.SessionStore._expiry_date()method is removed in Django 6.2. Useget_expiry_dateinstead.
- Fixed a regression in Django 6.1.3 where a
RecursionErrorfrom a GeoJSON value was not reraised as aValidationErrorby theGeometryFieldform field (#37491).
- Fixed a regression in Django 6.0.10 where a
RecursionErrorfrom a GeoJSON value was not reraised as aValidationErrorby theGeometryFieldform field (#37491).
- Fixed a regression in Django 5.2.19 where a
RecursionErrorfrom a GeoJSON value was not reraised as aValidationErrorby theGeometryFieldform field (#37491).
Django Fellow Reports
Django Fellow Report - Jacob
"Nothing this week but security, ops, release blockers, and unblocking CI." Seventeen tickets triaged, including an Oracle executemany() crash that landed in 6.1.3 and two FETCH_PEERS bugs, plus more work on the djangoproject.com server migration.
Django Fellow Report - Sarah
Patches readied for this week's security pre-notification email, five security issues engaged. She also found that UserAdmin let you add users through _saveasnew without change permission, and reviewed the GSoC call for mentors.
Sponsored
Reach 4,300+ Engaged Django Developers
Sponsor this newsletter to reach an active community of Python and Django developers.
Articles
My Django on the Med 2026
Paolo Melchiorre's organizer story from the second Django on the Med, three sprint mornings in Pescara in September with Carlton Gibson opening each day. Twenty-five people came for twenty places. The next one is Gozo, Malta, in October 2027.
Django-related deals for Black Friday 2026
Adam Johnson's running list. Half off his four books through Cyber Monday, half off three of Aidas Bendoraitis's packages with BLACKFRIDAY2026, and SaaS Pegasus unlimited down from $649 to $299. Email him to get yours added.
Mentorship graduations and a lot of gratitude
Three of Tim Schilling's mentoring clients have graduated. Each went somewhere different, but all of them left more certain about their careers and their ability to keep growing. He leaves most of those meetings reinvigorated.
PyCon US 2026 recap
Six months in drafts and worth the wait. Mariatta ran the Maintainer Summit, gave a talk on replacing PyLadiesCon's spreadsheets with Django, MC'd the Charlas track in a language she does not speak, and ended the week in urgent care.
Read-only Claude Code
Loopwerk got the eureka moments back by telling Claude Code not to write any code. One global instruction file in ~/.claude, the per-project ones deleted, and the agent is back to research, code reading, and rubber-ducking. "I don't want to become a rubber stamp for an AI agent."
Postgres 19 REPACK: faster, built-in table bloat cleanup
Craig Kerstiens calls REPACK his favorite thing in Postgres 19. REPACK (CONCURRENTLY) rebuilds a bloated table while it stays readable and writable, taking the exclusive lock only at the swap. His million-row test went from 493 MB to 228 MB in nine seconds.
Events
PyLadiesCon 2026
December 5 to 7, online and free, the fourth one. Talks, tutorials, sprints, and open spaces run across six languages and every timezone, hosted on Discord. Grab a ticket to get the invite, which goes out the week before.
Videos
We're All a Little Bit Manager Now - Frank Wiles
Fifty-four minutes with Frank Wiles on People or Code. He was across the street when Django was built, argued for open sourcing it before he had written a line of it, turned down Google to stay in Lawrence, and thinks managing AI agents rhymes with managing people.
Django Job Board
Ailytics is hiring a Django backend engineer to work on computer vision and predictive analytics.
Django Backend Engineer at Ailytics 🆕
Projects
amureki/django-devbar
Lightweight performance devbar for Django.
codingjoe/threadmill
Durable high-performance backend for Django's task framework.
django-hurricane/django-hurricane
Blueshoe's application server for running Django in Kubernetes. manage.py serve puts /startup, /alive, and /ready on their own port, serves static and media without an Nginx sidecar, and can hold readiness until migrations finish. The Tornado guts were recently swapped for Granian.
Sponsor Django News
Reach 4,300+ Django developers every Friday. See sponsorship details and rates.
27 Nov 2026 5:00pm GMT
Planet Python
death and gravity: reader 3.28 released – slow down, no AI redux
Hi there!
I'm happy to announce version 3.28 of reader, a Python feed reader library.
What's new? #
Here are the highlights since reader 3.26.
Slow down on errors and not modified feeds #
reader now slows down on errors by increasing the update delay exponentially, and matches the rhythm of the feed by adjusting the delay based on when the feed was last modified,1 in addition to the HTTP hint support added in previous versions.
This is part of a larger story about being polite to servers. Here, we still need logic to change feeds permanently in some cases, e.g. to handle permanent redirects, persistent errors, and repeated throttling. reader now stores detailed metadata about the last few updates of each feed, which will allow doing so in a future plugin.
New contributors #
Thank you to the new contributors that submitted pull requests to these releases!
Notably, you can now prevent automatic migrations by passing migrate=False to make_reader() or the equivalent CLI flag, and you can filter entries added_before a specific time (useful for a main page that updates only once a day, to prevent you from checking your feeds endlessly).
Want to contribute? Check out the docs and the roadmap.
Project infrastructure #
Earlier this year I added an AI policy banning LLM-generated content. To support it, there's now a pull request template asking contributors to confirm the PR does not contain any such content, and the readme mentions "no AI" as a deterrent.
reader stopped vendoring feedparser in 3.27, and recommends installing it from GitHub if you still want to benefit from the unreleased memory usage improvements.
Finally, Github Actions versions are now pinned and checked during CI.
Python versions #
reader 3.27 added support for Python 3.15 and PyPy 3.12, and dropped Python 3.11.
Hosted reader status update #
Speaking of, did I tell you I'm working on a hosted version of reader? :D
See also
- Why another feed reader web app?
- Why not just self-host it?
- Public demo (no login needed).
Not a lot of progress since last time, because I got distracted with the pyinfra live demo, and with making sure multi-user feed updates continue to work with the upcoming feed reader behavior plugin.
That's it for now. For more details, see the full changelog.
Learned something new today? Share it with others, it really helps!
What is reader? #
reader takes care of the core functionality required by a feed reader, so you can focus on what makes yours different.
reader allows you to:
- retrieve, store, and manage Atom, RSS, and JSON feeds
- mark articles as read or important
- add arbitrary tags/metadata to feeds and articles
- filter feeds and articles
- full-text search articles
- get statistics on feed and user activity
- import / export feeds as OPML
- automatically discover feeds in web pages
- write plugins to extend its functionality
...all these with:
- a stable, clearly documented API
- excellent test coverage
- fully typed Python
...and with no AI.
To find out more, check out the GitHub repo and the docs, or give the tutorial a try.
Why use a feed reader library? #
Have you been unhappy with existing feed readers and wanted to make your own, but:
- never knew where to start?
- it seemed like too much work?
- you don't like writing backend code?
Are you already working with feedparser, but:
- want an easier way to store, filter, sort and search feeds and entries?
- want to get back type-annotated objects instead of dicts?
- want to restrict or deny file-system access?
- want to change the way feeds are retrieved by using Requests?
- want to also support JSON Feed?
- want to support custom information sources?
... while still supporting all the feed types feedparser does?
If you answered yes to any of the above, reader can help.
The reader philosophy #
- reader is a library
- reader is for the long term
- reader is extensible
- reader is stable (within reason)
- reader is simple to use; API matters
- reader features work well together
- reader is tested
- reader is documented
- reader has minimal dependencies
-
Similar to RFC 9111 heuristic freshness. [return]
27 Nov 2026 4:00pm GMT
Tryton News: Security Release for issue 15266
Eva Luadora using AI tools has discovered that it is possible for a user to guess the temporary reset password of another user through repeated search.
Impact
- Attack Vector: Network
- Attack Complexity: Low
- Privileges Required: Low
- User Interaction: None
- Scope: Unchanged
- Confidentiality: Low
- Integrity: High
- Availability: None
Workaround
There is no known workaround.
Resolution
All affected users should upgrade all trytond to the latest version.
Affected versions per series:
trytond:- 8.2: <= 8.2.3
- 8.0: <= 8.0.14
- 7.8: <= 7.8.20
- 7.0: <= 7.0.61
Not affected versions per series:
trytond:- 8.2: >= 8.2.4
- 8.0: >= 8.0.15
- 7.8: >= 7.8.21
- 7.0: >= 7.0.62
Reference
Concerns?
Any security concerns should be reported on the bug-tracker at https://bugs.tryton.org/ with the confidential checkbox checked.
1 post - 1 participant
27 Nov 2026 7:00am GMT
25 Nov 2026
Django community aggregator: Community blog posts
Announcing Oxen, a simple self-hosted time-tracking and invoicing service
I've used Harvest for over ten years, as a freelance developer. It offered everything that I needed, in a neat little package. No feature bloat, nice UI, affordable price.
But over time it has added bloat, added AI integration, replaced its UI with a worse version, been sold to Bending Spoons and got more expensive. And while Harvest does have a free account (limited to one user and 2 projects), you can't use it to create invoices unless you connect to Stripe to get paid - costing you 2% of your gross revenue!
I went looking for a replacement, but nothing really offered the same minimal features for a low price. If I wanted to self-host something, the list of options got much smaller. So, I decided to build something myself.
The result is Oxen, and it's available right now. It's hand-built with love using Django, and I've already created my first real invoice with it.
Features
- Clients and projects, each with their own currency and VAT rates.
- Multiple users, with two roles available. Users can be assigned to specific projects.
- Timesheets: keep track of your hours per project, per day.
- Invoices: generate beautiful PDF invoices based on hours or free form.
I think more notable might be what's not included. No ads or tracking, no AI features. No expense tracking, per-employee rates, costs, budgets, profits. No tasks. No teams. No automated / scheduled invoice generation. No public invoice links. No online payments. No retainers.
On the roadmap: reports, an API, custom invoice templates, e-invoices, data export & import, and auto-saving timesheets with htmx.
Self-hosted
Oxen is fully open source and self-hosted. There's no hosted cloud version, and no plans to create one. There's no monetization plan. I've built this because I needed it for myself, and I am making it available for others to use.
There is first-class support for Coolify, as well as regular ol' Docker Compose. The readme should get you up and running.
25 Nov 2026 4:31pm GMT
23 Nov 2026
Django community aggregator: Community blog posts
My Django on the Med 2026 🏖️
From 23 to 25 September 2026, I hosted the second edition of Django on the Med in Pescara. This is what it meant to welcome the Django community to my hometown and find time to take part in the sprints myself.
23 Nov 2026 9:57pm GMT
05 Nov 2026
Planet Twisted
Glyph Lefkowitz: Why You Should Care About The Political Project of Twisted
Twisted was originally the network component of a text-based role-playing game engine. In the late 90s when it was first developed, the idea of a video game being able to send you actual emails and instant messages1 seemed pretty neat, rather than the valence that it would have today (nightmare). We never ended up making an actual game, so we eventually removed the "game engine" piece, and just kept the protocol implementations of the email and the AOL Instant Messenger, and the DNS and eventually SSH and so on. The residual pieces of that project have not seen maintenance for a decade.
So it's not really a way to make a text-based game any more.
Then, Twisted was the premier longest-lived and best-maintained event-driven I/O library for Python. If you wanted to make high-performance servers, it was the best and most obvious way to do it. Even if it still acquits itself relatively well in this regard, its claim to fame, and to indispensability, has been somewhat obviated by the inclusion of asyncio in the standard library. Even if it has some stuff to recommend it - better-than-average testing facilities, for example - you can get better-documented and better-integrated low-level asynchronous networking tools without even installing any packages.
So it's not really the premier choice for an event-loop these days.
Twisted does still contain an SSH server and client, an email server and client, a DNS server and client, a web server and client (now including websockets). But you can cobble these together by installing a variety of packages from other sources.
So... it's a bunch of protocols? And I guess it doesn't use AI? But... why would anyone care about that? Why contribute to such a thing?
What is Twisted doing, and who is it doing it for? What is the political project of Twisted, nigh on 30 years into its existence?
Most of all, why should you care about it, or want to contribute?
If you're asking what you could use Twisted for today, it's an excellent choice if you're implementing a new network service and you need more than one protocol. If you need to do HTTP, DNS, packet capture, and a custom SSH server, it would be very hard to arrange a collage of other Python packages to manage this. It's still much better at deterministic testing than most of the standard library. It's a bit easier to hook into a GUI.
But that's not what Twisted is doing.
What I want Twisted to do for the world is still an unfinished project. It's honestly kind of bad at doing what I want it to, but it could be great. The overarching goal of having and maintaining all this stuff is to, as much as possible, demystify networked software operation and let you build Internet facing systems at a human scale.
It's all in a memory-safe language with good error handling, so you can avoid the scariest security pitfalls. It's all integrated into a single paradigm with built-in tools for testing. It's designed to scale down to be runnable on the average laptop, and not require large elaborate server farms or distributed clusters to run. Via the twist command line utility, it provides a Swiss army knife of simple tools that you can use out of the box.
In a world where all of our compute is in massive distant opaque datacenters, where a tiny cartel of gigantic tech companies control nearly the whole supply chain, one of the few things that you still can have agency over is your own server on the Internet.
It's still possible to get a domain name for a few bucks a year, a free-tier or very low-cost VPS, then stick a glue record in and run your own DNS. From that point forward, you can run your own email, your own web server, your own terminal server. But doing this requires deep expertise, and that expertise requirement is massively inflated by the operational concerns that go with running twenty different pieces of software from twenty different projects, probably in twenty different languages, with completely inconsistent aesthetics.
The reason that Twisted is event-driven is because as much as it can be a pain to wrap your head around async/await (or worse yet, Deferred directly), it is much easier for a single person to understand the concurrency requirements of an async I/O multiplexed system than to understand what is going on with an application that requires multiple thread pools. It is possible to understand concurrent code that manages parallel tasks in that idiom. The reason that Twisted integrates so many different protocol implementations and attempts2 to unify them with a common authentication layer is to reduce the overhead required to manage a comprehensive suite of network services.
Even the not-using-AI thing is not an aside due to some accidental personal preference about tools - it's a core part of building an engine that you can personally understand if you dive into it, that's built with a consistent style and layered in a way that you can take apart if you need to. It's not built with AI because we're not building for AI, we're building for people and the entire point is that people are supposed to be able to understand it.
We used to have a tag line, which is somewhat less emphasized these days because its meaning is not immediately clear without this background, but was once quite prominently featured on the home page: "Twisted: Building the Engine of Your Internet". That's what I want to bring to you: an engine for you to build your Internet, that is small enough that you can make it personal, that doesn't require massive investment in management tooling just to get started.
Now, for various reasons, I no longer use twisted.names to host my own DNS (although I did for many years!), and we never wrote enough of a twisted.mail suite for it to be usable for email hosting on its own. But, if you're reading this article, it was probably delivered to you directly via Twisted's own twisted.web HTTP server, using twisted.protocols.tls to configure our own OpenSSL TLS termination. I have run with extremely high reliability for years and next to zero management overhead, in a single simple docker container. Which I then administer and upload files to via Twisted's own twisted.conch SSH server.
If that seems like an appealing project and you'd like to volunteer to help out, drop me a line and maybe I can point you at some tasks to get started. Twisted falls far short of this aspiration despite 30 years of work, and we could use all the help we can get.
Acknowledgments
Thank you to my patrons who are supporting my writing on this blog. If you like what you've read here and you'd like to read more of it, or you'd like to support my various open-source endeavors, you can support my work as a sponsor!
05 Nov 2026 10:51pm GMT
09 Oct 2026
Planet Twisted
Glyph Lefkowitz: Programming Isn’t Special
Creative Work
Writers went on strike to get protections against "AI". Thousands of artists have signed open letters in protest of "AI". There are so many copyright lawsuits from creative industry groups against AI that there's a whole dedicated website for it. Popular YouTubers absolutely hate it. If they're also musicians, they REALLY hate it. Across all creative industries, there is a concerted push to reject this technology.
Yet, almost unique among creative fields, many experienced programmers remain convinced that it's fine to use "AI" for programming. We do seem to hate it, and what it's doing to our industry. It's making us all miserable, but we are using it anyway.
A lot of the justification of this resignation seems to be to be because programming is not Art. If the tool can get the job done, and the job is just functional, then why does it matter?
It does matter, though. It matters because we shouldn't be using AI to produce Art, and programming is Art.
Art can be Mundane
Some people will say that programs cannot be art because programs are functional, rather than being expressive. Programs are mundane whereas art is transcendent.
This is based on a distorted understanding of what Art actually is.
In John Berger's "Ways of Seeing", he names this type of distortion "mystification". His example of this process is both amusing and illustrative. I encourage you to read it in its entirety.
In summary, though: Berger critiques the florid prose of an art historian describing a commissioned group portrait, including phrases like "subtle modulations of the deep, glowing blacks" and "harmonious fusion". The portrait is described as sublime, in nearly ecstatic terms.
Berger reveals that the reality of this portrait is that a poor old painter needed some work, and some officials probably thought it might be nice to have an official portrait. So they paid some money to the poor old man, and he painted it, and then they had a painting. It's a well-executed portrait of a group of people. Beautiful, even. But it was work commissioned for a fairly mundane purpose and it suited that purpose just fine. It was not, and is not, a divine relic.
Culturally, we are prone to mystifying painting, and sculpture, and film, and music. We imbue them with "subtle modulations". We ignore their functional aspects - we desire decoration, amusement, and distraction - and focus on their emotional impact.
Don't get me wrong: I love me some good aesthetic philosophy. I think it's great to really examine our reactions to artwork and to try and gain a deeper understanding of our culture and our selves through media analysis. If anything we really need to do more of it.
This does not mean that the creation of such works is mystical or that it should be venerated beyond any other sort of labor.
Not least of which other types of labor that are adjacent to, but not as culturally venerated, as fine art. We tend to mystify the work of a novelist, but to denigrate the work of a journalist. In reality, the functional prose of the journalist is no less important and deserves no less respect.
Although they might be far below the ethereal realm that novelists inhabit in our collective imagination, even journalists receive more respect and thus more mystification than lowly copywriters. Yet, there is no transcendental distinction between "novelist" and "copywriter"; the many of the skills are the same, and the distinction is merely an accident of commerce and opportunity.
In fact, many famous writers have famously inhabited both roles. This is not an accident! Working with words professionally, even (perhaps especially) mundane words, is excellent practice for working with words in a more purely artistic context, because even mundane creativity is still artistic.
Code can be Beautiful
One thousand Internet years ago, when I was in my late teens, I would describe myself as a "code poet". I was relentlessly mocked for this as what the Youth would today call "being cringe", and at the time was referred to as "pretentious".
I succumbed to the peer pressure, removed it from my email signature and my bio. While I still believed strongly in the parallels, I accepted that - socially, at least - comparing code to poetry, or indeed to Art, was a silly thing to do.
However, I never abandoned the idea, in my heart.
The thing that I am most well-known for, the invention of Deferred, was specifically an aesthetic reaction to the tedium of passing callback and errback parameters to every single remote procedure call in an RPC client/server application. Those two callbacks got the job done just fine. But they were ugly, and annoying to work with.
Deferred is an intentional poem about asynchronous task execution, with a deliberate eye to the aesthetics of the problem and the experience of using it. It was influential because of its focus on aesthetics.
I do not want to overstate the beauty or profundity of this minor contribution, or indeed its durability. That a poem exists does not mean it is a great poem, merely that it is a poem.
Our aesthetic culture around programs is more like folk epic poetry than fine art, so the influence of this contribution is less about its specific enduring power than it is about its influence on what came next; from MochiKit.Async to JQuery Deferred to JavaScript Promises and eventually to async/await; a long chain of different artisans each adding something of their own until the original has all but dissolved. (And I wasn't the "original" here, either, as I drew heavily from the E language's Promises, among other things.)
In order to make code into a deliberate artistic expression, one must have spent quite a bit of time contemplating the problem domain. Without having experienced the tedium of manually passing a thousand callback parameters, I would have had neither the skill, nor indeed the motivation, to bother creating such a thing.
Now, most code does not have to be like this. Most code does not get to be like this. Most code is functional, workday code. Most code could not make a lady weep. It's just copy-writing, if you will.
As I explained previously, most writing couldn't do that either. Most writing is just copy-writing, too. Most visual art is advertising. Most live music performance is background music in bars that will go largely ignored.
However, code that is intentionally aesthetically designed tends to be important, both socially and technologically.
We do have some tradition of self-mystification in software. As Abelson memorably put it, "Programs must be written for people to read, and only incidentally for machines to execute.", so we have long had some conception of programs as highly expressive, even if we can't always agree on what they're expressing or to whom. We will occasionally wax poetical about the philosophical implications of a particular piece of software. This is not unique to a single piece of software, either; more than one community has indulged in similar philosophizing.
The expressive and aesthetic qualities of software are not limited to reading source code or interacting with other programmers via APIs, either. For example, every year, Federico Viticci does a review of Apple's new operating system, which is (among other things) an aesthetic critique. Such a project would not be possible if the software did not have an aesthetic impact on its users.
Not to mention that every video game review is also a software review.
A Brief Aside about Software Literacy
It does make me a bit sad that we don't have much of a critical reading tradition in the software community. Literate Programming is often praised, but rarely practiced.
Moreover, it makes me sad that users have a pretty jumbled idea of what goes into making software, that programming literacy is pretty low, and that modern programming practices often deliberately produce a bad mental model of what the software is doing so it's even harder for the user to understand. The aesthetic experience of software is often wildly detached from its internal state.
While all of these problems predate AI by years or indeed decades, that's no reason to enthusiastically make them worse.
Defend The Mundane
If we use AI to erase all the copy-writing, all the graphic design, all the boring mundane art, and yes, all the boring custom WordPress theme development, then we will be removing all the practical opportunities for the vast amounts of practice and contemplation required for people to elevate their craft to eventually achieve great things. Education is great, but the majority of true skill development happens on the job and always has.
This doesn't mean that we can't use abstractions, or automation, to make our work easier. Programming is the art of abstraction, of understanding how to compose smaller ideas into bigger ones, of how to understand the automation of a larger system by understanding the rules that automate smaller ones and understanding how to combine them.
When we use "AI" to eliminate that understanding rather than raise it up to a higher level, to entirely destroy that creative decision-making process, we do a disservice both to ourselves as programmers and to our users. We would be doing a disservice to our users and our downstream fellow developers in the same way that a visual artist would be doing a disservice to their viewers or a musician would be doing a disservice to their listeners if they served them auto-generated filler instead of their own creative output.
Slop is slop, no matter the medium.
Each mundane project has some tiny chance - let's say, something like 0.1% - of achieving greatness. If we do a single project with AI, then sure, whatever, there's almost no chance that that project was going to be the one hit to create that career-defining moment for an engineer working on it. If we make a habit of doing all projects that way, though, we take the total likelihood of those moments of greatness from "definitely sometimes" to "never".
The precisely appropriate ways in which to resist AI encroachment on all software development lie well beyond the margins of this one short post. How much you can resist and which specific uses you should resist are up to you. But it is worth resisting in software just as much as it would be worth resisting in any creative medium.
Programming isn't special. It's just Art, and Art is the most human - and thus, the most universal - thing that there is.
Acknowledgments
Thank you to my patrons who are supporting my writing on this blog. If you like what you've read here and you'd like to read more of it, or you'd like to support my various open-source endeavors, you can support my work as a sponsor!
09 Oct 2026 7:00am GMT
28 Sep 2026
Planet Twisted
Glyph Lefkowitz: What Would A Serious AI Product Look Like?
One of the issues that I have with the current generation of "AI" products is that they do not appear to take their own premises seriously. I look at a plethora of obsequious chatbots claiming to be serious tools for problem solving, and I think, this is not what a problem-solving tool would look like.
Even before we get to the tremendous ethical problems with the frontier labs, it is this impression of their composition as a product that makes me feel, constantly, whenever I am interacting with them, that they are less a software product than that they are a grift, a scam designed to make me feel like I am interacting with a product that has capabilities that it simply does not, to try to lull me into a false sense of security that I can trust it.
The frontier labs are of course the worst offenders, but every criticism here applies just as much to Ollama, which (if anything, due to the obviously poorer quality of the available models themselves) needs these features even more than the frontier labs do.
Here, I will set down a few features that might convince me that an LLM-based product, particularly one focused on research or software development, was actually serious about helping me do useful things with it.
Make "Checking For Mistakes" A First-Class Feature
This is the biggest issue, and the major reason that I was inspired to write this post.
It is a truth universally acknowledged, that AIs cannot reliably provide information.
I could cite a ton of news articles and studies about this fact, but there is no need. Every single chatbot admits this, up front, in a fine-print disclaimer as a core part of their user interface. Gemini says "AI can make mistakes, so double-check responses", Claude says "Claude is AI and can make mistakes. Please double-check responses.1" ChatGPT says "ChatGPT can make mistakes. Check important info.".
Every time I see that last one, I wonder how I'm supposed to know what "info" is supposed to be "important".
All of these warnings are all small, gray text, painfully obviously included as legalese to push responsibility back onto the user rather than to help with anything. This is a core limitation of all these products. Checking their output is a part of the workflow for using them that:
- you absolutely cannot skip or skimp on without creating risks to yourself and whoever you are conveying its output to, and,
- it is very easy to skip or skimp on and you are encouraged at every turn to do so, because "just trust the output" is one of the quickest ways to save time.
A chatbot product that took this weakness seriously, as an actual consideration for using it, would put a checkbox next to every claim in its output. It would be a 2-column worksheet, where you've got the LLM output in the first column, and next to it, human notes in the second column, explaining what work went into checking this claim, and a big checkbox that you would only check off after you believe you'd checked its claims thoroughly enough.
Coding assistants would need to have some version of this as well. Right now, this is pushed off into code review, which means it is a dark pattern which subtly encourages the "author"2 to offload this work to their code reviewer without ever looking. Once again, "it's probably fine, I don't need to check" is the quickest way to save time and churn out those PRs faster.
It might even be useful for coding harnesses to have some affordance for checking code before it even runs tests. As the vendors themselves have admitted, it's not just expensive to burn tokens on your "AI", you also end up burning far more compute on the AI. Being able to check your diffs before sending them over to uselessly exhaust your testing compute cluster would be useful.
If your product tells me that it makes mistakes and I must be the one to check for the mistakes, but then gives me zero tools to check for mistakes, I cannot take it seriously.
More Citations to Check, And More Details
Most chatbots prefer to give an answer, rather than a citation. In my own personal use, I find that when asked to provide a list of citations with clearly marked sources for each one, they will appear to "get bored" halfway through the list and simply stop including citations at some point.
When the bots include citations at all, present them as inline annotations that say nothing but the domain name of the search result, in a font so small that it's barely legible, and an equally indecipherable icon that is fewer than 16 pixels on a side.
This is backwards.
Now, I am aware that these citations do come from somewhere, and in an attempt to reduce hallucinations, all of the major providers support some form of "grounding"3, and that those little barely-readable citation links are referencing actual structures in the RAG pipeline and not just potentially-hallucinated tokens, but I'm not talking about the underlying machinery in the model, I'm talking about the presentation to the user.
Plus, regardless of whether a snippet of text came from a RAG query, we know that LLMs can never provide an authoritative result; it's a fundamental limitation of the technology. They can still garble the results of RAG as much as they can misrepresent any other training data. This means that it must never present its results as authoritative.
If you ask an AI to do research queries, every result should be presented as a list of citations. Moreover, the presentation should display each citation as a large object of in its own right, with clearly identified metadata, including not just the site where it was found but its publication date and, if possible, the name of the author. The literal, unmodified quotation (not from RAG, not a summary: a quotation extracted with a regular program and not an LLM) should be front-and-center, larger than any AI-generated text.
If the AI product wants to editorialize or summarize (which should not always be necessary!), the AI-generated text should be presented as small text underneath the citation that has been found, de-emphasized as much as the disclaimer is right now, at the very least until the user has verified that the summary is accurate. Perhaps, for a research project, a "did you read the citation" checkbox might even be helpful.
If your product openly tells me that it will scramble, misrepresent, or omit its citations in its summaries, and I must read the original human-authored citations to be sure, but then gives me no tools to track my reading of those citations or even any way to find them, I cannot take it seriously.
No First-Person Output, No Apologies
There is no reason for a software development or research tool to use first-person language to describe itself. They should not do so. In fact they should not be allowed to do so.
There is also no reason that they should ever apologize. It is a waste of everyone's time; it's a waste for the chatbot to generate the apology, it's a waste for the user to read the apology, and it's a waste for the user to respond to the apology. Yet they unfailingly do this upon every correction.
The vendors of these tools know that they are routinely causing mental-health crises. In response, they have added non-functional "guard rails" that can still, in 2026, easily be bypassed.4
A product seriously interested in helping with productivity would correct this glaringly obvious flaw, focus on the task at hand, and stop emitting useless verbiage.
In the previous two sections, I tried to focus on ways in which the harness would be constructed differently even if the LLM technology is fundamentally impossible to improve; in this case, I have to assume that the labs have some control over the model itself. But unless they are truly incapable of influencing their output (and all their "benchmarks" and "capabilities" seem to indicate that they can control it very tightly) they ought to be building models that are much less verbose.
More Non-Natural-Language User Interfaces
Although natural language could hypothetically be a powerful interface for interacting with a computer system, the practical upshot of LLM natural language interfaces is that these interfaces are imprecise and repetitive, full of superstitions masquerading as "best practices". The inputs are a mess and the resulting outputs are a mess.
The general way of addressing this unstructured mess is to allow the chatbot to directly take action in response to the user's input; in other words to supply it with "tools" via an MCP server. But again, this is backwards. If we cannot even express our intent clearly in the first place, why are we trusting this system to take potentially destructive and harmful actions on our behalf?
Instead, I would expect a product that was seriously invested in helping me accomplish specific tasks, to have user interfaces specific to those tasks. Is it supposed to be able to be a security scanner that can discover OWASP top 10 bugs in a codebase? Have a button for that. Build that functionality into your harness, train it directly into the model, use smaller models that can satisfy that functionality more effectively than throwing it at the planet-sized brain of Fable or whatever.
I'm aware that there are small software startups that do something like this, but they are bolted on to the side of the main model providers' APIs, not integrated into the core of the product and not using their own models and AI systems to achieve consistent and repeatable results.
Strong Data Provenance Indicators
Chatbots produce data tables pulled from websites, from APIs, from MCP tools or from summarizing and scrambling the user's input. In order to provide the illusion of a seamless interface, this data is presented in-line regardless of where it comes from. But some of these outputs are produced mechanically via regular old API calls, for example, from the result of calling a tool or querying a website, but presented uniformly.
But there is a huge difference between an authoritative data source being inlined as part of a chatbot conversation, being treated as input by the chatbot, and some ad-hoc hallucinated data being treated as output of the chatbot.
If a product is trying to help me make accurate, empirically-grounded, data-driven decisions, the source of the data is critical.
Integrated into the "check for mistakes" and "verify citations" workflow I described above, there's a necessary "verify data programmatically" pass as well; to have tools that will treat portions of the output as a regular spreadsheet, allowing regular-old computer arithmetic to verify things and showing where such arithmetic was used, and how.
Better User Control of Reproducibility
Anyone familiar with the technical specifics of LLMs will know that they have a variable called "temperature" which controls the degree of randomness that the LLM uses to produce its outputs. But most users don't know this, because it isn't exposed as part of the user interface by default.
This leads to a subjective impression that you asked ChatGPT, and you got ChatGPT's authoritative answer.
You can't just set the temperature to zero and still get useful results - I am aware that it does more than just scramble the output at random, and there are perhaps good reasons that simply exposing just a temperature setting would not be that useful to users. But if we followed some more of my earlier recommendations for making more structured UI elements to solve specific problems rather than having long back-and-forth chats where each refinement depends on the previous response, perhaps those elements could also re-play the process so that users can see how reliable the bot is at a particular task and develop a sense of how the stochastic nature of the process actually affects it.
Similarly, if a user is trying to solve the same problem repeatedly with a chatbot, and the chatbot product has numerous computational tools that don't really have anything to do with the LLM, such as deterministic data-processing tools, then having a way to freeze the non-deterministic parts of the transcript but re-populate a particular data frame with updated information and fork / continue the conversation from there would be a way to avoid introducing pointless additional randomness when you already know what tool you're trying to use.
The fact that every conversation is presented as this flat chat prompt that doesn't let me interact with any of the widgets that were previously produced except through more chatting, really makes me feel like the whole product is just doing predatory social-media style "increase time on site" optimization, just trying to lure me into further repetitive and unreliable chats, rather than letting me get in, solve my problem, and get out.
Context Visibility
Managing the LLM context is the ongoing challenge facing organizations that are trying to use "agentic" workflows. Filling up the context with too much information causes well-known problems. In response, advanced LLM users attempting to solve larger problems must break up very long prompts into "skills", give access to lengthy information via "tools", and delegating sub-problems to "sub-agents" rather than simply extending a single prompt indefinitely.
All of these strategies have flaws, because even on the largest models, compared to the breadth and depth of knowledge-work problems, LLM contexts are quite small.
And yet, none of these products will show the context to the user by default. There are third-party addons that can show you a simple progress bar but for addressing the premier engineering difficulty with this technology, that is below the bare minimum.
This lack of visibility means that almost all of the tools for extending the context are flying blind. Rather than responding meaningfully to a full context, everyone just kind of guesses how much state they need by guessing and trying over and over again with progressively more elaborate skill and sub-agent layouts. Even managing context compaction ends up being an advanced API-driven workflow5.
A serious product that was trying to help the user understand would not only show "available context" but explain the impact of context compactions, make it easier to see harness-generated prompts, and so on. This would be a first-class feature, combined with the aforementioned reproducibility / replay tools, would allow users to do real experiments to develop an understanding about how to make good use of the context window.
A Sandbox That Actually Works
I've been focused on the chatbot interface here because it is the most immediately egregious upon looking at the UI. But the "agentic loop" tools used for coding are equally dangerous, if not more so. Coding tools keep destroying everyone's data, over the course of years.
These catastrophic incidents that become front-page news are relatively rare compared to the amount of coding-agent use out there. But they also aren't the only kind of sandbox violation. Coding models will so routinely edit test code instead of the system under test that there are "pro tips" articles all over the web giving you the flawed advice to simply ask the agent not to cheat. News write-ups of the catastrophic incidents themselves will also offer glib and wrong advice, like "use a docker container". That might prevent it from literally deleting your operating system, but it won't prevent it from destroying all the local work you have in your codebase (it needs access to a checkout, after all!)
There is a flurry of activity in the infosec space where people are rushing to plug the gaps left by these coding harnesses. Everyone's got their own version of an MCP approval gateway where you can optionally place a proxy between your agent and your production infrastructure.
In the best case, though, all these mitigations and proxies and prompts simply turn the user into an auto-approval automaton, hitting Y, Y, Y, Y over and over again, until you finally are driven mad and hit "yes to all", turn on full-auto mode and submit yourself to the void. With nothing between your personal vigilance and disaster, there are no workflows left beyond decrementing your own vigilance until there's nothing left and then hoping the disaster never arrives.
The fact that some mitigations exist that can be deployed by extra-cautious users does not change the fact that "agentic coding" is an unsafe-by-default technology deployed without concern or guidance. Every frontier lab has tied a spring-loaded shotgun to a dog; the fact that dog owners can publish thoughtful blog posts explaining how you can teach your dog the basics of gun safety or how you can have your dogs play in a bullet-proof room does not mitigate the fact that the product should not have been allowed in the first place, nor should it continue to exist without VERY strong security controls.
I might believe that a frontier lab were seriously interested in providing developers with a useful tool if they shipped something that had safety built-in.
That means tools in the harness, detached from any LLM, independent of the prompt, that could:
- sandbox all filesystem operations and strictly limit ANY deletions outside of specified scopes, regardless of operating system,
- enforce snapshotting of the entire repo on every operation for easy rollbacks and minimal lost work,
- remove the disaster of "auto mode" (not to mention nonsense like
--dangerously-skip-permissions) entirely, and - carefully consider a structure for presenting plans to the user where, rather than provoking immediate alert fatigue by asking for checks on every action, make structured plans which can be submitted to the user as a group of actions and reviewed and approved as a batch.
In the same way that I suggested above that research-based tasks should have a way of re-issuing prompts to determine how reproducible a result is, or whether other sources might be found, agent-based tasks should have a way of being executed against mock services for popular APIs, so that the verification can match both on the front-end (review the plan for making the API calls before they're executed) and the back end (review the API calls that were issued to the mock service and verify that they matched).
Instead, the frontier labs provide us products that are disasters out of the box, give us "best practices" to build massive and elaborate, as well as incomplete and error-prone, security perimeters of our own design. Then they blame "operator error" when it inevitably goes wrong. I cannot believe that these design choices are intended to help us be productive.
Bonus: Human Processes
Organizations deploying AI also frequently come across as unserious, for similar reasons. In 2023, naive exuberance could perhaps be forgiven. But today, as we near the close of 2026, there are several well-known problems, that have been extremely well-covered in the press. None of these things should be surprising, but most orgs deploying these tools are still just letting them rip and hoping it all works out.
Organizations deploying these tools would need at least three kinds of major modifications to their internal processes, if they wanted to be serious about using them safely:
1. Shift Rotations to Prevent Vigilance Decrement
There have been several high-profile incidents where software developers' gradual acquiescence to accepting LLM output have lead to serious economic consequences for the companies deploying them, perhaps best typified by Amazon's "millions of lost orders" due to a gradual decay of their engineering processes from LLM use.
These outages, and other AI-related failures, are due to the difficulty of maintaining focus on the same problems. In other words, as I described above, vigilance decrement is a constant problem, because AI outputs are most often correct, but continue to be incorrect in surprising and non-intuitive ways. As I have previously written, you cannot trust yourself to catch every bug with code review, and LLM output.
Aviation, for example, has very strict rules around rest requirements. There is also a specific rule that "No certificate holder may operate an aircraft without a second in command if that aircraft has a passenger seating configuration, excluding any pilot seat, of ten seats or more.". Other safety-critical professions have similar rules.
And yet, even in the age of the supposed "AI revolution", most software teams are still assigning every engineer a full feature load, not planning for any rest, and telling people to review code whenever they happen to have some "free time".
Maintenance of vigilance has to be your top priority. Regular, scheduled, inviolable rest periods where people do work without AI assistance, and are not exposed to any AI output for review or otherwise, would be crucial in order to stay mentally sharp enough.
The tools themselves should have this sort of thing built in. The mistake-review process described above should have a periodic spot-check mode where a second reviewer periodically reviews a chatbot log, doing their own independent verification of claims, to see if they spot the same errors. This could provide a feedback loop to determine how much rest is necessary to maintain continuous attention and actually spot hallucinations.
2. Skill Practice To Prevent Skill Loss
It is also well-known that AI use leads to AI reliance, and AI reliance leads to skill loss.
I like to use the analogy to dockworkers at a seaport6 adopting automation.
If you employ dockworkers to load and unload ships all day long, they are going to be getting tons of exercise. They will be able to lift heavy objects on demand, whenever. They might have plenty of health problems and injuries from this type of work, but "lack of exercise" will not be a problem.
With the development of standardized container ships and mechanized cranes, you are going to be changing their job description substantially: now they mostly spend all day sitting in a small cubicle moving a control lever back and forth, not lifting heavy stuff. They will get worse at lifting heavy objects.
In this analogy however, the cranes are not all that reliable. We know they break, and they drop their payloads sometimes, and the stuff needs to be manually moved. But this only happens a few times a week, at most. If you need whoever is driving the crane to be able to jump out at any moment and still move stuff around manually, then you need to make an affordance for that. You need to give them time to go to the gym and do some lifting for practice, or every crane failure is going to be a major emergency.
An organization doing an AI transformation would also need a massive increase to learning & development budget, both in terms of resources and in terms of schedule. If your people are going to lose skills because they've lost regular practice in the incidental course of doing their duties, then they are going to need deliberate, intentional, non-incidental practice of those skills to keep them sharp.
But rather than trying to accommodate new workflows and give time for people to adjust, most AI mandates are simply dropped on workers like a ton of bricks, with no time to adapt and no affordance for maintaining their skills. Operate the crane and stay fit and healthy and ready to switch back to manual lifting at any time and then get back in the crane cockpit right afterwards. Don't mess up.
Then an accident happens and everyone is surprised, as if this process weren't practically designed to produce a terrible result.
3. Mental Health Resources to Deal with Mental Health Risks
AI psychosis often begins with practical problem-solving, and beyond that, it can start specifically at work. Not to mention the more pedestrian condition of "AI brain fry".
If you are mandating your employees to use a hazardous tool that may seriously and directly damage their mental health, you need trainings and resources. You need in-house therapists and you need to be making sure to check in with people actively to make sure that this is not happening.
Again, the tool itself ought to have some way of dealing with this. An occasional "take a break" popup is easily dismissed; they need a user-visible AI personal dosimeter so you can see your cumulative usage over time.
I don't even know if "usage over time" is a sufficient metric to gauge risk. Maybe if your work chatbot start to talk about resonance too much, unless you literally work as an acoustic engineer, that should be flagged for someone.
We are, again, years into dealing with these tools, and we know these risks exist. Yet no serious mitigations are provided. Not even any way of measuring the risk exposure.
And More
There are also many other risks associated with the technology. There are intellectual property risks with the foundation models, due to recklessness with their training data. There are existential financial risks associated with the infrastructure build-out. The extent to which most "open" models are simply derivatives of frontier models is an open question.
What I Think
If any one of these things were regularly overlooked by AI vendors or users, that would be a totally normal product oversight. Room for improvement for the next version, but nothing catastrophic.
Shipping without any of them doesn't seem like lean product management, it seems like a careless attitude towards risk and a product design philosophy oriented entirely towards short-term demos, with no regard for how to realize actual productivity gains.
Furthermore, being available for years without anything like these features, despite hundreds of incidents demonstrating the risks, with hundreds of billions of dollars of funding, makes it seem to me like if they were to add all the features that would make their product actually safe and hypothetically useful, these features would reveal that it is actually not an improvement to productivity.
In the year since I first wrote about measuring the cost/benefit ratio of AI, I have heard from numerous people who have shown this to management to try to illustrate why their AI initiatives - like almost all AI initiatives - were either failing or burning out their engineers.
I've also heard from lots of people that have told me that it's obviously useful and they don't need to measure so carefully, because they are getting lots of work done that they couldn't have otherwise.7
I have yet to hear from a single person who has said "yeah, we measured according to your methodology8, and it turns out that our AI work is going great and that our ratio is 0.75".
Obviously, I cannot say for sure why this is; absence of evidence is not evidence of absence. But at this point I think the null hypothesis is that AI tools provide, in aggregate, zero value. They make mistakes too often, and the externalities they produce are so bad and so difficult to control that even before we get to the places where they are just physically poisoning people, even the negative effects on their direct users end up cancelling out whatever benefit to they provide to their organizations.
If I were wrong, then including tools to measure an AI's effectiveness at the tasks their users are actually trying to accomplish, rather than meaningless benchmarks, would show big productivity gains. The frontier labs would be champing at the bit to add such features, and crowing about their fantastic results.
I think the labs know that if they did that, it would present a grim picture to their users. Such tools would let their users see that it's making mistakes much more often than they realized, that they're spending much more time with it than they want to be, and that it's just generally not fit for purpose.
If they prove me wrong by adding in all of these safety mechanisms, and in the process, they make all of their AI technology less harmful, I'll be thrilled to be debunked.
Acknowledgments
Thank you to my patrons who are supporting my writing on this blog. If you like what you've read here and you'd like to read more of it, or you'd like to support my various open-source endeavors, you can support my work as a sponsor!
-
It is also interesting that for the next section, sometimes it seems that Claude's disclaimer is "Please double-check cited sources." instead. ↩
-
... by which I mean the "prompter", since authorship is not what's happening here. ↩
-
Claude has the "citations API", Google has various different kinds of "grounding" against its own APIs, and I guess Microsoft can check OpenAI's homework if you want. ↩
-
Given the relatively slow speed of the justice system and the mainstream press around the world, we probably will not hear about whether people are managing to incidentally break through these guard rails to self harm right now, but there are no shortage of stories still being reported right now where people were still doing just that, such as in this story where the effect of the much vaunted "guard rails" in 2025 was that if you wanted it to write you a suicide note, it would refuse twice but acquiesce on the third try. I don't see any reason to believe this fundamental issue has been addressed in the meanwhile, since it had been happening for years at that point. ↩
-
In this tutorial we can also see an incredibly rosy scenario presented, where a long-running workflow effortlessly compresses all of the necessary information into the new context, even if it uses a lower-fidelity model to do so, rather than the tangled and gnarly problem of problems which really are too big to fit in the context, which is to say, "most real-world problems". This presents the context limit instead as a minor speedbump to be worked around rather than the fundamental flaw in LLM tooling. ↩
-
A heavily fictionalized seaport. This is not how actual dockworkers work. This is a simplistic metaphor about incidental benefits of instrumental tasks, it is not supposed to delve deeply into the mechanics of maritime shipping. In particular I know that cranes are more reliable than this and this is not actually how you would respond to a crane malfunction anyway. Feel free to share fun facts about maritime shipping if that is your special interest but please do not @ me to correct this metaphor. ↩
-
To my knowledge, none of their publicly-traded employers have posted a measurable improvement to efficiency outside the margin of error. ↩
-
Or any similar methodology. I don't need people to adopt the exact practice that I proposed there. ↩
28 Sep 2026 4:27am GMT





