Planet Python
Last update: November 28, 2026 04:47 PM UTC
November 27, 2026
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.
November 27, 2026 11:00 PM UTC
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]
November 27, 2026 04:00 PM UTC
Tryton News
Security Release for issue 15271
Cédric Krier has discovered that the access rights on selection field can be bypassed by using the :string suffix.
Impact
- Attack Vector: Network
- Attack Complexity: Low
- Privileges Required: Low
- User Interaction: None
- Scope: Unchanged
- Confidentiality: Low
- Integrity: None
- Availability: None
Workaround
There is no known workaround.
Resolution
All affected users should upgrade 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
November 27, 2026 07:00 AM UTC
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
November 27, 2026 07:00 AM UTC
Security Release for issue 15259 and 15263
EZO Labs Security using AI tools has discovered that it is possible for an authenticated user to read the temporary reset password and the password hash of any web user.
Impact
- Attack Vector: Network
- Attack Complexity: Low
- Privileges Required: Low
- User Interaction: None
- Scope: Unchanged
- Confidentiality: Low
- Integrity: Low
- Availability: None
Workaround
A field access rule can be added for those fields to forbid the access to users.
Resolution
All affected users should upgrade all web_user module to the latest version.
Affected versions per series:
web_user:- 8.2: <= 8.2.0
- 8.0: <= 8.0.1
- 7.8: <= 7.8.2
- 7.0: <= 7.0.2
Not affected versions per series:
trytond:- 8.2: >= 8.2.1
- 8.0: >= 8.0.2
- 7.8: >= 7.8.3
- 7.0: >= 7.0.3
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
November 27, 2026 07:00 AM UTC
Security Release for issue 15264
EZO Labs Security using AI tools has discovered that it is possible for a user to use the export data on resources without the access rights inherited from the linked record. The resources are attachments, notes and avatars.
Impact
- Attack Vector: Network
- Attack Complexity: Low
- Privileges Required: Low
- User Interaction: None
- Scope: Unchanged
- Confidentiality: Low
- Integrity: None
- Availability: None
Workaround
The administrator can add global access rights on the resource directly.
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
November 27, 2026 07:00 AM UTC
Security Release for issue 15258
EZO Labs Security using AI tools has discovered that it is possible for a user to read the temporary reset password of another user.
Impact
- Attack Vector: Network
- Attack Complexity: Low
- Privileges Required: Low
- User Interaction: None
- Scope: Unchanged
- Confidentiality: High
- Integrity: High
- Availability: None
Workaround
The RPC request to common.db.reset_password can be blocked by a firewall to mitigate the possibility for an attacker to create a reset password for a targeted user.
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
November 27, 2026 07:00 AM UTC
Security Release for issue 15256
EZO Labs Security using AI tools has discovered that it is possible for a user to change the companies, employees and roles it was assigned to.
Impact
- Attack Vector: Network
- Attack Complexity: Low
- Privileges Required: Low
- User Interaction: None
- Scope: Unchanged
- Confidentiality: High
- Integrity: Low
- Availability: None
Workaround
There is no known workaround.
Resolution
All affected users should upgrade all trytond, company and user_role modules 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
company:- 8.2: <= 8.2.0
user_role:- 8.2: <= 8.2.0
- 8.0: <= 8.0.2
- 7.8: <= 7.8.1
- 7.0: <= 7.0.1
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
company:- 8.2: >= 8.2.1
user_role:- 8.2: >= 8.2.1
- 8.0: >= 8.0.3
- 7.8: >= 7.8.2
- 7.0: >= 7.0.2
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
November 27, 2026 07:00 AM UTC
Security Release for issue 15257
Cédric Krier has discovered that the server accept compressed request from user without enforcing size limit which makes it vulnerable to zip bomb attacks.
This is a continuation of Security Release for issue #13142
Impact
- Attack Vector: Network
- Attack Complexity: Low
- Privileges Required: Low
- User Interaction: None
- Scope: Unchanged
- Confidentiality: None
- Integrity: None
- Availability: High
Workaround
A proxy can be deployed in front of the trytond server to forbid this kind of request.
Resolution
All affected users should upgrade 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
November 27, 2026 07:00 AM UTC
Jaime Buelta
What a year, huh?
This week marks a full year since the release of Opus 4.5 (24th Nov 2025). And it feels like a decade has happened since then in software. Opus 4.5 was the model that really turned agentic coding from a curiosity that was somehow useful into a real strategy that you could use day to day.But it didn’t stop there. We got new releases, with the Big Two frontier labs (OpenAI and Anthropic) consolidating into models with Small (Luna/Haiku), Medium (Terra/Sonnet), Large (Sol/Opus) and a new XLarge class first introduced with the ominous... Read More
November 27, 2026 01:38 AM UTC
November 26, 2026
LernerPython blog, from Reuven Lerner
Do programmers have a future?
The short answer: Yes, absolutely.
For several decades now, a degree in computer science (or a related field) has almost guaranteed employment, with good salaries, excellent benefits, and comfortable working conditions. If you didn’t like where you were working, or wanted a new challenge, or wanted a bigger boost in salary than your current boss was willing to offer, you could switch jobs. Indeed, if you didn’t change jobs every year or two, people looked at you a bit strangely, wondering why you weren’t using the system to your advantage.
And if you didn’t get a CS degree? That’s OK; there were numerous “bootcamps” where, over the course of several months, you would get the training you needed to get a job. I’ve met some of the people who went through these bootcamps, and while they didn’t have the deep theoretical background that university graduates did, they were smart, hardworking, and more than qualified for many software jobs.
But over the last few years, and especially over the last year, things changed: Companies are laying off software engineers. In the past, even during computer-industry recessions, that typically meant being without work for weeks or months. But I’ve met many people, especially young people, who have been without work for a year or more, and have applied to hundreds of jobs. Even if they’ll eventually find something, the situation is wearing them down.
What has changed? AI
Why have things changed so much? Everyone blames artificial intelligence. After all, if AI allows one programmer to do the work of 10, then why keep the other nine? If it takes experience to use AI effectively — which I believe is true — then why hire junior developers, when you can get more done with a handful of senior developers and a big token budget? Even AI companies boast that their code is mostly written by AI, rather than by people; Anthropic recently reported that they developed their own, in-house version-control system because Git can’t handle Claude’s enormous volume of contributions and pull requests.
Given this environment, it’s no surprise that enrollment in computer science programs has dropped — one friend who works at a public university in California told me by about 40 percent, although this article about the drop in CS enrollment indicates it’s lower than that (if still quite high). That’s an astonishing change in just a few years, in a field that for so long seemed to promise comfort and riches to pretty much anyone with a degree.
But is it true that we have an oversupply of programmers? That the world will need many fewer coders in the coming years, because AI will do it all for us?
Even though the answer might be “yes” in the short run, I believe that it’ll be “no” in the long run.
What do I mean by that?
I’ve been in the computer industry for more than 30 years, and I haven’t ever seen a revolution as huge, influential, and all-encompassing as AI. It’s hard to exaggerate just how much this technology is already changing our lives, and how much it’ll continue to change them down the road. No one knows quite where things are going, which is why many companies are hedging their bets. It makes sense to be slower and pickier about hiring at a time of uncertainty. So in many ways, we’re going through what I’m calling a “recession-less recession,” where companies are budgeting, hiring, and firing as if we were in the middle of a recession, even when their profits are going through the roof. They don’t know how to plan, and so they’re being extremely conservative.
And yes, after about a year of using Claude Code and other AI tools nonstop, I see just how much an individual can do. I’ve created more software in the last year than in the previous 30 — ranging from my entire LernerPython practice system to one-off programs that find missing receipts for my accountant’s office. Individual developers have never been more powerful.
It’s quite possible that those jobs at large software companies aren’t coming back, at least any time in the near future. That’s because many tasks that previously took 500 software developers can be done with 50, or even 20 or 10. The productivity increase is extraordinary by any measure.
Custom software everywhere
But as I wrote in a previous article, I think that we’re heading toward a world in which less software is mass produced in a one-size-fits-all manner, giving you 100x more features than you want or need. Instead, organizations will build custom software that does precisely what they want, in the way that they want it.
Someone will need to write those custom programs — and yes, AI might do a lot of the coding, but a person will need to direct it. And that’s precisely where the programming jobs will be in the future: Directing agents that write custom code in organizations of all shapes and sizes.
There might still be large software companies in the future. Certain domains are just too complex for a handful of developers, sometimes because they are highly regulated, such as in the medical and defense industries. We might see many more small- and medium-size consulting companies, offering custom software development for businesses. Just as a company will have a maintenance staff that fixes problems with its building, it’ll have a software staff that helps to improve, optimize, and debug the company’s internal software systems.
For most of history, most businesses couldn’t have an on-site, in-house financial analyst, and relied on an outsourced accountant. With Excel and Google Sheets, every company can now do their own bookkeeping. Moreover, that task is democratized, requiring less training and specialized knowledge than before. And the accountants? They’re doing just fine, solving higher-level problems — much as programmers will do with agents.
In this not-too-distant future that I’m describing, every organization will have custom software. Which means that every organization will need at least one programmer on at least a part-time basis. That means we’ll need more programmers, not fewer. With many more opportunities, not fewer.
Yes, this might mean that a CS degree will no longer lead to a job that comes with a gym, free massages, and ball pit. (Some still will, I’m sure.) But just as software is everywhere today, I believe that custom software will be everywhere tomorrow. To implement that custom software in so many places, taking into account each organization’s specialized knowledge and needs, we’ll need more programmers than we have today. Their jobs will look different, and they might require a mix of skills — but their work will be even more crucial than it is today.
I recognize that this transition will take time, will be painful for many people, and that not everyone will make it to the other side. That’s why society, and especially governments, need to think about how they’ll help citizens get through what might be the biggest, fastest technological revolution we’ve ever seen, and provide a safety net to those who can’t adjust or find work in this new world. On this front, I’m a bit worried: After all, the Industrial Revolution took place several centuries ago, and we’re still reeling from its consequences.
So, what should you learn?
If you’re thinking of getting into programming, but worry that there won’t be jobs out there, you’re not wrong to worry — but jobs do exist, and I expect that there will be many more jobs in the years to come.
If you’re a student right now, then what should you be learning? I’ve got lots to say about that, and I’ll write more about it very soon. But in a very small nutshell: (1) Learn to write well, (2) learn Python, and (3) learn agentic coding. Do those three things, and you’ll be doing great, now and in the future.
The post Do programmers have a future? appeared first on LernerPython.
November 26, 2026 01:23 PM UTC
Talk Python to Me
#570: Free-Threaded Python
NumPy already releases the GIL. So threads should already pay off for your NumPy code, right? Christopher Ariza tested that. He summed the rows of a 10,000 by 10,000 array on Python 3.14. Sequential took 360 milliseconds. A thread pool took 373, slower than doing nothing. The same code on free-threaded Python 3.14t took 83.7 milliseconds. Free-threaded Python is officially supported as of 3.14. The GIL isn’t gone, though. It’s a zombie. Import one compiled package that hasn’t opted in, psycopg2 for example, and the GIL comes back for your entire process. You get a warning, not an error. <br/> <br/> Chris is the creator of StaticFrame and its C extension library ArrayKit. We dig into when threads beat plain NumPy, how to tell if you’re actually running free-threaded, and conditional-futures, his drop-in thread pool that stops your code from getting slower when the GIL wakes back up.<br/> <br/> <strong>Episode sponsors</strong><br/> <br/> <a href='https://talkpython.fm/talk-python-membership-fewer-ads'>Talk Python Membership</a><br> <a href='https://talkpython.fm/talk-python-membership-inner-circle'>Talk Python Membership</a><br> <a href='https://talkpython.fm/training'>Talk Python Courses</a><br/> <br/> <h2 class="links-heading mb-4">Links from the show</h2> <div><strong>Guest</strong><br/> <strong>Christopher Ariza</strong>: <a href="https://github.com/flexatone?featured_on=talkpython" target="_blank" >github.com</a><br/> <br/> <strong>GIL Guard project</strong>: <a href="https://mkennedy.codes/posts/catch-the-import-name-the-culprit-keep-threads-free-introducing-gilguard/?featured_on=talkpython" target="_blank" >mkennedy.codes</a><br/> <strong>chameleon-rs</strong>: <a href="https://mkennedy.codes/posts/chameleon-templates-modernized-chameleon-rs/?featured_on=talkpython" target="_blank" >mkennedy.codes</a><br/> <strong>diskcache-oxide</strong>: <a href="https://mkennedy.codes/docs/diskcache-oxide/?featured_on=talkpython" target="_blank" >mkennedy.codes</a><br/> <br/> <strong>Black Friday at Talk Python</strong>: <a href="https://talkpython.fm/black-friday" target="_blank" >talkpython.fm/black-friday</a><br/> <br/> <strong>episode 204</strong>: <a href="https://talkpython.fm/episodes/show/204/staticframe-like-pandas-but-safer" target="_blank" >talkpython.fm</a><br/> <strong>Fetter</strong>: <a href="https://fetter.io?featured_on=talkpython" target="_blank" >fetter.io</a><br/> <strong>PyBay 2026</strong>: <a href="https://pybay.org?featured_on=talkpython" target="_blank" >pybay.org</a><br/> <strong>StaticFrame</strong>: <a href="https://github.com/static-frame/static-frame?featured_on=talkpython" target="_blank" >github.com</a><br/> <strong>Free-threaded row-wise apply</strong>: <a href="https://static-frame.readthedocs.io/en/latest/articles/freethread.html?featured_on=talkpython" target="_blank" >static-frame.readthedocs.io</a><br/> <strong>Getting Started with Free-Threaded Python Using NumPy</strong>: <a href="https://github.com/flexatone/present-free-thread?featured_on=talkpython" target="_blank" >github.com</a><br/> <strong>Free-threaded Python</strong>: <a href="https://docs.python.org/3/howto/free-threading-python.html?featured_on=talkpython" target="_blank" >docs.python.org</a><br/> <strong>abi3t</strong>: <a href="https://peps.python.org/pep-0803/?featured_on=talkpython" target="_blank" >peps.python.org</a><br/> <strong>TonIO</strong>: <a href="https://talkpython.fm/episodes/show/561/tonio-a-multi-threaded-async-runtime-for-python" target="_blank" >talkpython.fm</a><br/> <strong>did a whole course</strong>: <a href="https://training.talkpython.fm/courses/python-concurrency-deep-dive" target="_blank" >training.talkpython.fm</a><br/> <strong>psycopg2</strong>: <a href="https://pypi.org/project/psycopg2/?featured_on=talkpython" target="_blank" >pypi.org</a><br/> <strong>ArrayKit</strong>: <a href="https://github.com/static-frame/arraykit?featured_on=talkpython" target="_blank" >github.com</a><br/> <strong>217 of the top 360</strong>: <a href="https://hugovk.dev/free-threaded-wheels/?featured_on=talkpython" target="_blank" >hugovk.dev</a><br/> <strong>Quansights free-threading guide</strong>: <a href="https://py-free-threading.github.io?featured_on=talkpython" target="_blank" >py-free-threading.github.io</a><br/> <strong>conditional-futures</strong>: <a href="https://github.com/static-frame/conditional-futures?featured_on=talkpython" target="_blank" >github.com</a><br/> <strong>rayon</strong>: <a href="https://github.com/rayon-rs/rayon?featured_on=talkpython" target="_blank" >github.com</a><br/> <br/> <strong>Watch this episode on YouTube</strong>: <a href="https://www.youtube.com/watch?v=9PhWaXMOjqw" target="_blank" >youtube.com</a><br/> <strong>Episode #570 deep-dive</strong>: <a href="https://talkpython.fm/episodes/show/570/free-threaded-python#takeaways-anchor" target="_blank" >talkpython.fm/570</a><br/> <strong>Episode transcripts</strong>: <a href="https://talkpython.fm/episodes/show/570/free-threaded-python#transcript-section" target="_blank" >talkpython.fm</a><br/> <br/> <strong>Theme Song: Developer Rap</strong><br/> <strong>🥁 Served in a Flask 🎸</strong>: <a href="https://talkpython.fm/flasksong" target="_blank" >talkpython.fm/flasksong</a><br/> <br/> <strong>---== Don't be a stranger ==---</strong><br/> <strong>YouTube</strong>: <a href="https://talkpython.fm/youtube" target="_blank" ><i class="fa-brands fa-youtube"></i> youtube.com/@talkpython</a><br/> <br/> <strong>Bluesky</strong>: <a href="https://bsky.app/profile/talkpython.fm" target="_blank" >@talkpython.fm</a><br/> <strong>Mastodon</strong>: <a href="https://fosstodon.org/web/@talkpython" target="_blank" ><i class="fa-brands fa-mastodon"></i> @talkpython@fosstodon.org</a><br/> <strong>X.com</strong>: <a href="https://x.com/talkpython" target="_blank" ><i class="fa-brands fa-twitter"></i> @talkpython</a><br/> <br/> <strong>Michael on Bluesky</strong>: <a href="https://bsky.app/profile/mkennedy.codes?featured_on=talkpython" target="_blank" >@mkennedy.codes</a><br/> <strong>Michael on Mastodon</strong>: <a href="https://fosstodon.org/web/@mkennedy" target="_blank" ><i class="fa-brands fa-mastodon"></i> @mkennedy@fosstodon.org</a><br/> <strong>Michael on X.com</strong>: <a href="https://x.com/mkennedy?featured_on=talkpython" target="_blank" ><i class="fa-brands fa-twitter"></i> @mkennedy</a><br/></div>
November 26, 2026 12:17 AM UTC
November 25, 2026
The Python Coding Stack
Just a Quick Task
November 25, 2026 04:30 PM UTC
Ned Batchelder
Human sorting, hardened
“Human sorting” is sorting strings (usually file names) so that any numbers in the names come out in the right order. For example, “file10.txt” should come after “file2.txt”, but regular sorting will put them in the wrong order. I’ve written twice before about the function to do this (Human sorting and Human sorting improved), but there’s more to say about it.
One effect of AI these days is bug reports for obscure edge cases. As a maintainer, it’s been a challenge first to read through them all, and then to decide which ones deserve a fix. It’s tempting to fix every little thing no matter how unlikely it is to happen in the real world. But every fix costs time, energy and focus. Every fix comes with risks in the form of new bugs or changed behavior. So some long-tail issues should be marked as “won’t fix.”
But this one intrigued me: if a file name includes a numeric component with 4301 digits, then the human sorting function fails. Buh?
Before we get to the current problem, here’s the original “buggy” code, slightly simplified:
def human_key(s: str) -> tuple[list[str | int], str]:
"""Turn a string into a sortable value that works how humans expect.
"z23A" -> (["z", 23, "A"], "z23A")
"""
def try_int(s: str) -> str | int:
"""If `s` is a number, return an int, else `s` unchanged."""
try:
return int(s)
except ValueError:
return s
parts = re.split(r"(\d+)", s)
split_key = [try_int(c) for c in parts]
return (split_key, s)
def human_sorted(strings: Iterable[str]) -> list[str]:
"""Sort the given iterable of strings the way that humans expect."""
return sorted(strings, key=human_key)
It splits the string into parts alternating between runs of digits and runs
of non-digits. It uses try_int on all of them, which turns the digits
into ints and leaves the non-digits as strings. That gives us a list of words
and numbers that can be compared to do the sort we need.
The problem now is with that 4301-digit run. Since 2022, Python’s
string-to-integer conversion has had a limit on the number of digits that can be
converted. This is to prevent denial of service attacks based on the quadratic
time to convert a string to an int. The default limit is 4300 digits. If a
string is longer than that, int() raises a ValueError.
But we were counting on ValueError to mean “this isn’t an integer”, and to
separate words from digits. Now that too-long number makes try_int return
the string un-converted, and using it as a sort key will try to compare an int
to a string, failing with:
TypeError: '<' not supported between instances of 'int' and 'str'
Of course, it’s absurd to be concerned that an actual file name will include a run of more than 4300 digits. But I’ve been tweaking this function over decades, and I like fiddling with it. The comments on the original post offered a number of alternative implementations, a few of which would have avoided this problem.
Rather than try to convert all of the parts of the name, we know from how
re.split works that the parts will alternate between words and numbers,
starting with a word even if it’s just an empty string. So we can attempt
conversion only for the parts that we know are digits.
First, we replace try_int with a function to safely convert digit
spans into numbers:
def number(s: str) -> float:
"""Convert s to a number with no errors."""
try:
return int(s)
except ValueError:
# This only happens if the number is too large to convert to an int.
return float("inf")
Now we can create split_key differently by only converting the
odd-numbered parts:
split_key = [(number(p) if i % 2 else p) for i, p in enumerate(parts)]
It’s tempting to check whether a part starts with a digit:
split_key = [(number(p) if p[:1].isdigit() else p) for p in parts]
But isdigit() gets us into Unicode difficulties because \d and
isdigit() disagree on what count as digits. Something odd like
"a1²b" would be split into ['a', '1', '²b'], and
'²'.isdigit() is true, so now we’d be mistaking words for numbers.
Another even-odd approach, but it’s too fancy:
converters = itertools.cycle([str, number])
split_key = [fn(part) for fn, part in zip(converters, parts)]
In the end, though this is a long-tail bug, I fixed the human sort function; it was a tiny isolated fix. Also, I don’t like having a function that works only 99.9999% of the time. And maybe it’s still not done: there are probably other odd edge cases that could be a problem here. If I hear of those, I might make more fixes.
The AI fire-hose of issues and pull requests requires me to exercise and strengthen my “won’t fix” muscle. But I also get to choose where to make a fix just because it pleases me.
Update: Jeff Epler suggested a few clever alternatives. The 4300-digit limit is only applied to base 10 conversion. If we interpret digit spans as base 16, there’s no limit on length, and the resulting ints will sort the same as their base 10 counterparts. No helper function is needed at all. As an added bonus, there are now no floats, so the type hinting can be more straighforward. The result is satisfyingly compact:
def _human_key(s: str) -> tuple[list[str | int], str]:
"""Turn a string into a list of string and number chunks.
"z23a" -> (["z", 35, "a"], "z23a")
Runs of digits are converted using base 16 because it has no digit limit,
and the numbers will sort the same as if they were interpreted as base 10.
The original string is appended as a last value to ensure the key is unique
enough so that "x1y" and "x001y" can be distinguished.
"""
parts = re.split(r"(\d+)", s)
split_key = [(int(p, base=16) if i % 2 else p) for i, p in enumerate(parts)]
return (split_key, s)
def human_sorted(strings: Iterable[str]) -> list[str]:
"""Sort the given iterable of strings the way that humans expect.
Numeric components in the strings are sorted as numbers.
Returns the sorted list.
"""
return sorted(strings, key=_human_key)
Another of his suggestions was to use a different int() substitute. We
don’t need actual integers in the key, just something that will sort the same
way as integers. His idea was to turn digit runs into a tuple of (length,
value) with no conversion at all!
split_key = [
(
(len(p2 := p.lstrip("0")), p2)
if i % 2 else p
)
for i, p in enumerate(parts)
]
I haven’t done timings of any of these solutions. This last solution avoids the quadratic time of integer conversion, but would likely be slower for the real-world data we find in file names.
November 25, 2026 12:46 PM UTC
Kevin Renskers
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.
I hope that Oxen is useful to more people. Please let me know if you’re using it, and a star on GitHub would be very much appreciated.
November 25, 2026 10:31 AM UTC
LernerPython blog, from Reuven Lerner
Python holidays package: Find the date of Thanksgiving
Tomorrow is Thanksgiving in the US. Use the “holidays” package to calculate its date in Python:
import holidays
us_holidays = holidays.US(years=2026)
us_holidays['2026-11-26'] # 'Thanksgiving Day'
us_holidays.get_named('Thanksgiving Day') # [datetime.date(2026, 11, 26)]
The post Python holidays package: Find the date of Thanksgiving appeared first on LernerPython.
November 25, 2026 07:00 AM UTC
Python Bytes
#506 Raft, Rust, and release day
<strong>Topics covered in this episode:</strong><br> <ul> <li><strong><a href="https://pyfound.blogspot.com/2026/11/de-fanging-dangerous-triggers-in-github.html?featured_on=pythonbytes">De-fanging dangerous triggers in GitHub Actions across an organization</a></strong></li> <li><strong><a href="https://rqlite.io/?featured_on=pythonbytes">RQlite - The fault-tolerant relational database built on SQLite.</a></strong></li> <li><strong><a href="https://mkennedy.codes/docs/diskcache-oxide/user-guide/django.html?featured_on=pythonbytes">diskcache-oxide now supports Django</a></strong></li> <li><strong>Muru: an AI-assisted Rust server for Python apps from mod_wsgi's creator</strong></li> <li><strong>Extras</strong></li> <li><strong>Joke</strong></li> </ul><a href='https://www.youtube.com/watch?v=8PUItSzSkBo' style='font-weight: bold;' data-umami-event="Livestream-Past" data-umami-event-episode="506">Watch on YouTube</a><br> <p><strong>About the show</strong></p> <p>Sponsored by <a href="https://pythonbytes.fm/longlink">LongLink</a>: Open-source platform for building and running custom business applications with Python and FastAPI</p> <p><strong>Connect with the hosts</strong></p> <ul> <li>Michael: <a href="https://fosstodon.org/@mkennedy">Mastodon</a> / <a href="https://bsky.app/profile/mkennedy.codes?featured_on=pythonbytes">BlueSky</a> / <a href="https://x.com/mkennedy?featured_on=pythonbytes">X</a> / <a href="https://www.linkedin.com/in/mkennedy/?featured_on=pythonbytes">LinkedIn</a></li> <li>Calvin: <a href="https://sixfeetup.social/@calvin?featured_on=pythonbytes">Mastodon</a> / <a href="https://bsky.app/profile/calvinhp.com?featured_on=pythonbytes">BlueSky</a> / <a href="https://x.com/calvinhp?featured_on=pythonbytes">X</a> / <a href="https://www.linkedin.com/in/calvinhp/?featured_on=pythonbytes">LinkedIn</a></li> <li>Show: <a href="https://fosstodon.org/@pythonbytes">Mastodon</a> / <a href="https://bsky.app/profile/pythonbytes.fm">BlueSky</a> / <a href="https://x.com/PythonBytes?featured_on=pythonbytes">X</a></li> </ul> <p>Join us on YouTube at <a href="https://pythonbytes.fm/stream/live"><strong>pythonbytes.fm/live</strong></a> to be part of the audience. Usually <strong>Tuesday at 7am PT</strong>. Older video versions available there too.</p> <p>Finally, if you want an artisanal, hand-crafted digest of every week of the show notes in email form? Add your name and email to <a href="https://pythonbytes.fm/friends-of-the-show">our friends of the show list</a>, we'll never share it.</p> <p><strong>Calvin #1: <a href="https://pyfound.blogspot.com/2026/11/de-fanging-dangerous-triggers-in-github.html?featured_on=pythonbytes">De-fanging dangerous triggers in GitHub Actions across an organization</a></strong></p> <ul> <li>GitHub will block <code>pull_request_target</code> by default in public repos starting Dec 2, 2026. GitHub announced this in its changelog on Nov 2; it isn't in effect yet. That default stops applying once you set your own event policy.</li> <li>Two triggers are the main danger. <code>pull_request_target</code> and <code>issue_comment</code> both run with a token that can write to the repo and with the repo's secrets. The classic "pwn request" is a workflow that checks out a stranger's PR code and runs it.</li> <li>It's not theoretical. Ultralytics (Dec 2024), LiteLLM and Telnyx via Trivy (Mar 2026), and elementary-data (Apr 2026), where a single crafted PR comment led to a malicious release on PyPI.</li> <li>To get started, the first step is an Actions event policy. On GitHub Team or Enterprise, one org-wide policy allows only the triggers you expect: <code>pull_request</code>, <code>push</code>, <code>release</code>, <code>repository_dispatch</code>, <code>schedule</code>, <code>workflow_dispatch</code>, <code>workflow_run</code>.</li> <li>Start in Evaluate mode. It blocks nothing and logs what would have been blocked under "Policy insights". Leave it on long enough to cover a release and your least frequent scheduled job.</li> <li>Free plans have to do it repo by repo. You apply the same policy through gh api /repos/$repo/actions/policies. New repos have no policy until someone adds one.</li> <li>Find what you have: <code>gh search code pull_request_target path:.github/workflows --owner YOUR-ORG</code>, also search for <code>issue_comment</code> and then <code>zizmor</code> to check each repo's workflows.</li> <li>PSF status: the policy is set up for the pypi org. In the python org, Seth Larson is still migrating the last few repos before turning it on. The post's intro says all three orgs are done; I'm going by the body, which is more specific.</li> </ul> <p><strong>Michael #2: <a href="https://rqlite.io/?featured_on=pythonbytes">RQlite - The fault-tolerant relational database built on SQLite.</a></strong></p> <p>rqlite is a self-hosted distributed relational database built on SQLite and the Raft consensus protocol. It puts SQLite behind an HTTP API and replicates data across machines. For Python developers, the appeal is familiar SQL and lightweight deployment, with a database that can survive a server failure.</p> <ul> <li>Keep SQLite's SQL, add high availability. A three-node cluster can survive one node failing, provided the remaining nodes can communicate.</li> <li>Python applications send SQL and parameters over HTTP as JSON. Integrations include pyrqlite and sqlalchemy-rqlite; check client capabilities before migrating existing code.</li> <li>Deployment is a single binary per node, with Docker and Kubernetes options. Features include full-text search, JSON support, SQLite extensions, change data capture, and automated cloud backups.</li> <li>Replication does not scale writes. Every write goes through the leader and Raft log, adding network and disk overhead compared with standalone SQLite.</li> <li>Transactions must fit within one HTTP request. You can execute a batch atomically, but cannot hold a transaction open across requests. Explicit BEGIN/COMMIT/ROLLBACK control is unsupported.</li> <li>Read consistency is configurable: default Weak normally reads from the leader; Linearizable adds quorum checks; None permits potentially stale local reads. Stronger guarantees cost coordination.</li> <li>Discussion angle: when does SQLite need clustering rather than just backups? Proposed demo: write from Python, stop the leader, then show the surviving cluster accepting requests after election.</li> </ul> <p>SPONSOR SEGMENT: LongLink</p> <p><strong>Michael #3: <a href="https://mkennedy.codes/docs/diskcache-oxide/user-guide/django.html?featured_on=pythonbytes">diskcache-oxide now supports Django</a></strong></p> <p>diskcache-oxide plugs into Django’s existing cache framework for page caching, template fragments, low-level cache calls and sessions. Worker processes on the same machine share one cache on disk, with atomic counters across processes. The appeal is keeping Django’s familiar caching API without running Redis or Memcached.</p> <ul> <li>Setup uses the package’s <code>django</code> extra, <code>diskcache_oxide.DjangoCache</code> as the backend, and an absolute directory for <code>LOCATION</code>. Existing Django cache calls stay the same; optional sharding spreads contention across multiple cache files.</li> <li>Keep disposable pages separate from session state. The recommended configuration uses two aliases and directories: page-cache failures become misses or dropped writes, while session writes raise on failure and sessions are not evicted for size. The backend rejects session configurations that silently drop writes.</li> <li>The companion <a href="https://mkennedy.codes/docs/diskcache-oxide/example-apps/django.html?featured_on=pythonbytes">Django example</a> runs four Gunicorn workers and demonstrates cached views, template fragments, sessions and a shared visit counter. Response headers identify which worker answered, and multiprocess tests check concurrent increments, sessions across workers and caches opened before forking.</li> <li>This shares a cache across processes on one machine, not across a fleet. Django’s <code>get_or_set()</code> can still compute twice when workers miss together. A cached view that reads sessions also needs <code>vary_on_cookie</code> to avoid serving one visitor’s personalized response to everyone.</li> </ul> <p><strong>Calvin #4: Muru: an AI-assisted Rust server for Python apps from mod_wsgi's creator</strong></p> <p><a href="https://simonwillison.net/2026/Nov/21/muru/?featured_on=pythonbytes">Simon Willison's post</a> (repo: <a href="https://github.com/muruhq/muru?featured_on=pythonbytes">muruhq/muru</a> · author's series: <a href="https://grahamdumpleton.me/posts/2026/11/twenty-years-of-mod-wsgi/?featured_on=pythonbytes">Twenty years of mod_wsgi</a>)</p> <ul> <li>What it is: Muru is Graham Dumpleton's successor to mod_wsgi, 20 years after he started writing mod_wsgi in December 2006. It's not an Apache module and not another server you put behind nginx. He means it to handle running a Python web app from your laptop through to production.</li> <li>The parts: muructl is a single Rust binary that handles HTTP/1.1, HTTP/2, TLS, static files and compression, and never runs Python. A Python host process imports your app once and forks workers from it. A controller decides what runs and is never on a request's path.</li> <li>It hosts more than WSGI: ASGI and gRPC too, all in one app. Requests can be handed from WSGI to ASGI, so an existing WSGI app can add websockets without a rewrite. Flask and Django run unmodified, e.g. muructl run mysite.wsgi:application.</li> <li>Every deploy is a new release: a release starts next to the old one and traffic moves only once it's ready. If the new code won't even import, the old release just keeps serving. Even dev-mode auto-reload works this way, and the same mechanism gives you blue/green, canaries and rollback.</li> <li>It understands Python apps: the access log splits waiting time (queue=, every thread was busy) from your code's time (app=), so you can tell "add capacity" from "fix slow code". Each scaling policy can scale workers to zero and optionally stop the host process too.</li> <li>Fun tie-in with the lazy-imports story: his "when lazy imports help" post argues that PEP 810 lazy imports can hurt a pre-forking web server. Deferred modules load separately in each worker, so they aren't shared through copy-on-write memory. Muru measures import costs per app instead of guessing.</li> <li>Status: alpha, pre-releases only. Install with uv tool install muructl. It runs on Linux and macOS with CPython 3.11+, including free-threaded builds, and is Apache-2.0 licensed.</li> <li>The AI angle: Dumpleton says most of the code was written by AI, while he handles design, review and steering. It's about a month old, and he's in the Claude for Open Source Program. He doesn't accept patches: "don't send me a patch, just describe the problem." Quote: "deciding what isn't good enough yet is still down to me, and twenty years of getting things wrong with mod_wsgi turns out to be useful for that."</li> </ul> <p><strong>Extras</strong></p> <p>Michael:</p> <ul> <li><a href="https://training.talkpython.fm/courses/all?featured_on=pythonbytes">Black Friday is on at Talk Python Training</a></li> <li><a href="https://github.com/python/cpython/issues/162227?featured_on=pythonbytes">My first CPython issue</a></li> <li><a href="https://us.pycon.org/2027/?featured_on=pythonbytes">PyCon US 2027 call for proposals is open</a></li> <li><a href="https://www.wiz.io/blog/nginx-http2-rce-vulnerabilities?featured_on=pythonbytes">nginx2root - patch your nginx now</a> <ul> <li>Credit <strong>Jake Howard</strong></li> <li>F5 shipped nginx 1.31.9 (mainline) and 1.30.7 (stable) on November 18, 2026. They fix five memory-corruption bugs that Xint named nginx2root. Each one is a path to unauthenticated remote code execution. If nginx fronts your Python apps, check your version today. <ul> <li>The big one is CVE-2026-123007, an integer underflow in HTTP/2 flow control. It has been in every release since HTTP/2 landed in 1.9.5 in 2015, and a reachable TLS port with HTTP/2 on is enough.</li> <li>Exposure is huge. Xint counted 11.94 million nginx hosts on Shodan that report a version, and 98.9% were in the affected range.</li> <li>The fix is to upgrade. Setting http2 off; is a stopgap that blocks only two of the five. The other three hit the DNS resolver, HTTP/3, and the mail proxy.</li> <li>Docker does not save you. Xint chained the nginx bug with an unpatched Linux kernel SCTP flaw to go from the nginx worker in a container to root on the host. Block the sctp kernel module if you don't use it.</li> <li>AI found most of it. Four of the five came from Xint's autonomous scanner with no human steering, and Wiz found the HTTP/2 pair with its AI code scanning harness. Xint and Wiz are withholding their exploits and no attacks in the wild are reported, but some outlets say a public PoC hit GitHub the same day.</li> </ul></li> </ul></li> </ul> <p><strong>Joke:</strong> <a href="https://x.com/datachaz/status/2123699622720028878?s=46&featured_on=pythonbytes">What they think grid</a></p>
November 25, 2026 06:28 AM UTC
Armin Ronacher
Abolish Lock Poisoning
Rust has a curious feature that I don’t think the language would land today,
if it was not there for a long time: mutex poisoning. When some Rust code
panics while holding a std::sync::Mutex, the mutex is poisoned. That means
that any further call to lock() returns a PoisonError. The motivation for
this feature is that an object might have some internal invariants that need to
be upheld and panicking in the wrong moment might invalidate reasonable at and leave an
object behind in a broken state.
Personally I absolutely hate this feature as it has bitten me so many times and I cannot once remember it helping me. The libs team is discussing making the non-poisoning locks the default in the next edition but entirely expectedly it has caused quite a few people to jump to the defence of the feature.
In this post I want to make my personal case why poisoned locks should either be entirely removed or be made the exception.
Primarily this is because I have yet to come across code in the wild that handles a poisoned lock correctly. On the other hand I have come across enough code that mishandles it and as a result behaves worse than a parking_lot lock would which does not support poisoning.
Josh Triplett put it quite strongly in a hackernews comment: “In the entire history of the standard library, we have never once seen a single report of anyone attempting to recover from poison.”
When a panic happens with a lock held, there are two reasonable reactions: shut
the process down, or carry on and ignore the flag. With panic = "abort" you
get the former and poisoning never comes up. From all the evidence I have seen,
with unwinding, the idiomatic lock().unwrap() picks the worst option of all.
That’s because it neither stops the process nor lets it continue as it will turn every further lock into a panic with sometimes disastrous effects. But that is not the only issue with the system today. So here I want to share some of the issues and with some references to real world code of how people got bitten.
The Error Holds the Lock
One subtle aspect to the poisoning is that the PoisonError needs to hold the guard.
That’s because in order to ignore the poison flag, you need to fetch the guard
from the error object. Holding on to the error means holding on to the lock!
That can cause common code that does error wrapping / error conversions into a
deadlock hazard. The innocent looking m.lock()? in a function returning
Box<dyn Error> or similar keeps the mutex locked for as long as the error
lives (#159930).
This can also happen with if let. For instance in
cc-switch
you can see that they had a test hung because a if let Ok(..) = lock() { .. } else { .. } fallback locked the same mutex again while the unnamed
PoisonError from the condition still owned the guard.
PC-AI had the same bug
in a match arm. Another case can be found in
ox-embed-server.
Panic To Outage
Deviously poisoning does not fail fast and done wrong, it fails forever. The
original panic happens once, on one thread, often somewhere unrelated from future
failures. Every later lock().unwrap() on that lock now however panics as
well, and because so much Rust code survives panics (thread pools, request
handlers, tokio tasks, FFI boundaries), the process stays up and becomes
useless:
- In RLS a failed cargo build panicked with
ENV_LOCKheld which made any subsequent runs impossible. - Mozilla’s
application-services
saw
PoisonErrorrise to rank 5 in crash stats and moved to parking_lot after they concluded they did not benefit of poisoning handling. - A Neon safekeeper on staging failed every timeline lookup after a panic with a global lock held, and the original panic could not even be found in the logs.
While not live services, test suites show the same general issue. One failing
test poisons a shared static and every test after it fails with PoisonError.
This problem showed up for
cargo,
deno,
polars and
rustc
itself.
Attempt At Recovery
If you recover with into_inner(), the flag stays set and every later access
takes the recovery path again. And remember that for the first nine years of
Rust after the poisoning feature landed, you could not even clear it as
clear_poison arrived only in 1.77. Not clearing the flag means that potentially
expensive side effects will happen from that point onwards:
goose-in-a-pond rebuilt its decoder state on every transcription after a single panic, librefang logged the same warning on every access, and a pool threw its model away on every return.
Nobody Relies on It, Not Even std
So who is handling poisonings? I’m really not sure, definitely not the standard library. Every place where the standard library’s own code ignores it. Standard I/O has done so since March 2015, two months before 1.0, because “any poison must have been the result of user code which the lock isn’t protecting”. A common issue with a lot of poisoning errors that never had anything to do with the mutex that was held.
Same with the panic output
capture, the backtrace
lock and the WASI
environment lock. They
all do the same and unsurprisingly there is an open
PR to move std’s internal
mutexes to nonpoison.
And I would argue the ecosystem has largely come to the same conclusion. Tokio’s own locks don’t poison.
Internally it wraps the std one in an adapter that removes poison. When it landed Carl Lerche remarked “I rather pretend lock poisoning isn’t a
thing.” In
one case Eliza Weisman needed
into_inner
to unlink a waiter during drop, or “we’ll leave the list with a potentially
dangling pointer”. I want to point to this in particular because this is a case where poisoning stood in the way of memory safety which is commonly argued as a reason you want poisoning.
Wasmtime, crossbeam-channel, tracing-subscriber always ignores lock poisoning. rust-analyzer switched to parking_lot after cancellation poisoned its solver like RLS did before. The parking_lot maintainer described it as an anti-feature that hurts usability and reliability to which I strongly concur.
Why Only Mutex?
Another aspect here is why this is done on Mutex but not on RefCell. Surely
if the case for poisoning is that some code temporarily breaks an invariant, panics, and
someone else observes the broken state, then this should apply to more cases.
Take the usual example that argues in favor of poisoning and replace Mutex
with RefCell, and you have exactly the same
problem.
Threads are not needed at all and this is not hypothetical either as tokio
catches every task panic. Paired with a LocalSet the panic comes back as a
JoinError, the next borrow() succeeds and reads a null
pointer
exactly like the mutex example from the issue.
Given how much panic catching goes on in async code, much of which is !Send
for performance reasons, I’m not even convinced that panics get caught more
often in multi-threaded code yet nobody asks for RefCell to poison.
The standard library isn’t consistent with itself either as LazyLock poisons
for good, OnceLock never poisons, Mutex poisons but lets you recover.
Also remember that poisoning only tracks panics and a more common early return
has the same issue. The ? operator (as well as the try! macro before) that
returns early from the middle of a critical section leaves the same broken
invariant behind an unpoisoned lock.
Note also that the coupling of poisoning of mutexes is
historical
and an explicit Poison<T> type would allow you to opt into this for any
interior mutability wrapper.
What I want
Personally I hope the rust team stabilizes std::sync::nonpoison, have
std::sync::Mutex resolve to it by
default. If someone wants
poisoning add that separate Poison<T> wrapper then anyone who believes they
need and can handle it, can opt into it for any type including RefCell or
tokio threads.
What I think would be the worst of all outcomes is the counter-proposal is to
keep poisoning but have lock() panic instead of returning a Result. That
would only fix the held guard lock semantics, and to a smaller degree the
ergonomics, but it makes the slow outage the only option. That is what every
lock().unwrap() does today, and the issues above should be plenty of evidence
of this being a problematic behavior in light of the existence of catch_unwind.
The post In defense of lock poisoning is the best argument for the other side and worth reading but I believe the evidence all points the other way, and most of what Oxide ships aborts on panic anyway which is also a reasonable behavior.
November 25, 2026 12:00 AM UTC
November 24, 2026
EuroPython Society
List of EPS Board Candidates for 2026/2027
At this year’s EuroPython Society General Assembly (GA), scheduled for Sunday, 29 November 2026, at 18:00 CET, we will elect a new Board of the EuroPython Society for the 2026/2027 term.
List of Board Candidates
In accordance with the EPS bylaws, the Board consists of one Chair, one Vice Chair and two to seven additional Board members.
We are pleased to introduce the following candidates who have expressed their willingness to serve on the EPS Board, listed in alphabetical order by first name: Artur Czepiel, Daria Linhart Grudzień, George Margaritis, Hugo van Kemenade, Jake Balas, Kshitijaa Jaglan.
Nomination Committee Recommendations
Following discussions with current Board members and prospective candidates, and after careful consideration of the Society’s needs, the Nomination Committee are delighted to recommend the following six candidates for election to the EPS Board: Artur Czepiel, Daria Linhart Grudzień, George Margaritis, Hugo van Kemenade, Jake Balas, Kshitijaa Jaglan.
The Nomination Committee’s recommendations are advisory. Eligible members were welcome to put themselves forward for election independently of these recommendations at least 5 days before the GA, as per Article 10 of the EPS bylaws.
Artur Czepiel (nomination for Chair)
Software developer
I’m a Software Developer based in Poland. I attended my first EuroPython in 2016, joined the organising team after the 2017 conference, and have since served six terms on the EPS Board, three of them as Chair.
Over the years, I have contributed to various parts of the Conference and the Society, including infrastructure, programme, community outreach, and most of the financial spreadsheets 🙂
I think the big challenge for 2027 will be preparing the conference for a fast-changing landscape. This means updating our programme and infrastructure, as well as how we work with other communities.
Daria Linhart Grudzień
Program, Community & Communications / Incident Response & Reliability Engineering
I have been involved with EuroPython since 2025, most recently as the lead of the Communications Team for the 2026 edition. Before that there were three editions of the Czech PyCon which I co-organized, along with various meetups for technical communities. I love contributing to the EuroPython community because it’s a chance to do something truly meaningful with a fantastic group of kind and smart folks from across multiple cultures.
What I would like to do while serving at the board:
- Turn the momentum from the Community Organizers Summit and the Polish Organizers Meetup into a working European Python organizers network.
- Make the EuroPython team&aposs know-how something other organizers can borrow rather than rediscover.
- On the conference side: smoother onboarding for organizers, team leads, and on-site volunteers.
- A conference wiki built out the way the Communications Team built out its comms playbook.
Much of the organizing team rotates this year, so I expect the bulk of the board&aposs work to go into building that new team, backing new leads, and putting scaffolding in place so everyone can contribute, collaborate, and have fun along the way.
About me:
Nearly a decade in software engineering, most of it spent on reliability and incident response. That work has meant looking after production systems, and the people building them, across a range of organizations. Python has been one technology among many in my toolset, and the one I keep returning to. I like how readable the language can be, but the primary reason is (surprise!) the community. No other language seems to bring together this many people who like to help others just because they think it’s the right - and fun - thing to do. And it feels amazing to be even a tiny part of it.
Inspired by the folks running for Python Software Foundation Board of Directors, and EuroPython’s Mia Bajić, I shared more about my motivations, goals, past contributions to EuroPython, and my background on my blog:
https://blog.dariagrudzien.com/europython-board-nomination-2026/
George Margaritis
Software Engineer / Open-Source Advocate
Hello everyone 👋
I&aposm George, a software engineer based in Athens, Greece, with a soft spot for open-source software, and a board member of PyGreece, where I&aposve been involved in growing our local Python community and organising PyCon Greece since its first edition.
My first EuroPython was in lovely Prague in 2024, as an on-site volunteer, where I met some wonderful people and decided to keep volunteering in the years to come. Since then, I&aposve been part of the Operations team in 2025 and the Python Organisers Working Group in 2026, where I led the organisation of the Community Organisers Summit.
Through my involvement over the years, I&aposve had the opportunity to experience community building from different perspectives and have become increasingly interested in what makes communities grow and remain sustainable. We have some wonderful Python communities around the world, each with its own experiences and ways of doing things, and I think there&aposs much more we could learn from one another.
As part of the Board, I&aposd like to build on the work the Society has already done in bringing our communities closer together. I think we can create more opportunities for collaboration throughout the year, making our collective knowledge and resources more accessible while also building a shared space for open conversations and new ideas. Finding better ways to support each other is something I really believe in, as our long-term sustainability depends on it.
Beyond that, I&aposd also like to contribute to the day-to-day running of the Society and support the work that&aposs already being done. EuroPython has given me a lot over the past few years, and I&aposd be more than happy to take on more responsibility and help make things a bit better along the way.
Hugo van Kemenade (nomination for Vice Chair)
Sovereign Tech Fellow / Python core developer / 3.14 & 3.15 release manager
I&aposve been involved in open source for around 20 years and joined the CPython core team in 2022. I&aposm the Release Manager for Python 3.14 and 3.15 (upgrade now!). I&aposm a PSF Fellow and was awarded the PSF Community Service Award this year.
I&aposm lucky to work on open source as my job, through the Sovereign Tech Fellowship. I have a focus on sustainability to improve processes and workflow.
For example, I’m proud my proposal was accepted to alternate the annual Language Summit between the US and Europe, rather than always being in the US, to improve the diversity of voices of who will shape the future of Python.
As a result, I co-organised the Language Summit at EuroPython this year: co-ordinating with the Steering Council and EuroPython organisers, handling calls for proposals and attendance, selecting talks and attendees, planning the programme, making sure it all went smoothly on the day. I&aposll help organise future editions.
I co-organise the Helsinki Python and PyData Helsinki monthly meetups, and helped with the programme and promotion for PyCon Finland 2025.
I&aposve been helping out with random bits&aposn&apospieces with EuroPython for the past couple of years, I&aposm sure many of you have seen me on Discord and in the repos, or at the registration desk. It&aposs amazing to see all the volunteers make EuroPython a success, and I&aposd like to help EuroPython continue to be successful in the future.
Jake Balas (nomination for Vice Chair)
Developer / Space Cowboy and Disc Jockey
To Whom It May Concern, please don’t be concerned !
If we haven’t met yet, here are some words that could probably, maybe describe what it’s all about. First of all I enjoy bringing (ideally) positive emotions to people and our communities. Since when I was a kid I wanted to be a software developer and that dream has unfortunately come true. Yet I was lucky enough to stumble upon Python some 15 years ago and days were suddenly nicer. Last 8 years I’m using Python as a core part of ground segments for space missions.
Returning to communities, there is a good chance we’ve met at EuroPython for the past 3 years. Besides that, we could’ve met at our local Brno Python meetup Pyvo, Python Pizza, hackerspace Base48 where I’m currently part of the board or a Rust meetup. If we haven’t met yet, I’m sure we can change that at EuroPython 2027.
Even though my specialty is taking care of Ops and “making things work”, I believe that behind every great event are amazing people putting in a lot of effort, often behind the scenes. I&aposd love to support those people, help remove obstacles from their way, and take care of the boring (but necessary!) things so they can focus on what they do best.
Times are pretty volatile these days and a lot of people can feel a bit beaten by the constant noise in the current dev space. Besides keeping things running, I would also like to contribute to the next EuroPython edition by expanding on the amazing content we already provide with some more tactile and interactive experiences. To bring joy to hobbyists and people who enjoy playing with the language and experiencing it through the physical world.
And a thought for the closing session of this statement - My big wish is that my 2 lil kids will see and like what I do and become part of their own communities when they grow up.
Kshitijaa Jaglan
Engineer / Explorer / Open Source Enthusiast
I started using Python when I was 12 out of sheer curiosity, but also because the name coming from Monty Python seemed funny. Over the years, I’ve found that the community reflects much of what I appreciate about the language: simple, welcoming, accessible, and approaching unexpected challenges with fun and passion.
I first attended EuroPython remotely during COVID. Amid all the chaos, it was lovely to see everyone making it engaging through both technical and non-technical content. After moving to Europe in 2024, I volunteered with the EP’25 sponsorship team and went on to lead it for EP’26, where we reached our second-highest sponsorship total ever. I also moderated the sponsorship roundtable at community organizers’ summit, learning about the challenges faced by Python and non-Python conferences across Europe and beyond.
This year, I’d like to do more, both within EuroPython and for local communities.
Within EuroPython, I’d like to bring a little more structure across teams so we don’t repeat the same work every year or lose knowledge along the way. I want to keep things simple: easy for someone new to pick up, and useful for those who’ve been around a while.
For local communities, I’d like to turn the EP’26 organizers’ summit discussions into action items, get feedback, and work on them together. I see two key parts to supporting communities: funding and exchanging information. I’d like to help bring in more sponsorships while also making room for open discussion and learning from each other.
I’d start with sponsorships, where I already have context and experience, and gradually get my hands dirty with whatever else EPS needs.
November 24, 2026 10:51 PM UTC
LernerPython blog, from Reuven Lerner
Announcing: Teleprompter
I record a lot of videos, both for my courses and for my YouTube channel. And while it’s not a huge problem, I’ve always been frustrated that the notes that I prepared for the video had to be on a separate screen. And no, it’s not terrible that I turn my head a bit. But I’ve always felt that this was a bad way to do things.
Earlier today, I tried something new: I put my phone on top of my monitor, and read the text from it. That worked great, except (a) the text was too small and (b) the phone kept falling down.
That’s when I realized that I needed a better solution. And I also remembered: I’m a programmer. And I know how to do agentic coding. And I’m sure there is a solution to this.
That was about 12 hours ago. During that time, Claude Code has been slaving away, creating the application of my dreams, which I (perhaps obviously) called Teleprompter:
- It only runs on MacOS.
- You can download it from the GitHub repo at https://github.com/reuven/teleprompter in either source or binary form.
- It feels a bit weird to have written an application in a language I don’t know (Swift) on an OS for which I’ve never developed (MacOS). But you know what? My initial tests show that it’s working just great.
Teleprompter puts a window on your screen that is visible to you (the user), but which isn’t visible to screen-recording programs such as ScreenFlow (which I use). That window contains Markdown, either written/edited directly or loaded from a file. When the text is invisible, clicking on it goes to the window beneath it, not to the Teleprompter window itself.
I’ve already started to use Teleprompter in my recordings, and I look forward to using it even more. But if you have suggestions, thoughts, bug reports, or feature requests, just send a note my way — or better yet, send a pull request to the GitHub repo.
The post Announcing: Teleprompter appeared first on LernerPython.
November 24, 2026 08:50 PM UTC
PyCoder’s Weekly
Issue #762: Refactoring With AI, Binary Search, Race Conditions, and More (2026-11-24)
#762 – NOVEMBER 24, 2026
View in Browser »
How to Refactor Python Code With an AI Agent
Learn how to refactor Python code with AI safely: find code smells, check that tests pin the behavior, and let an agent apply one refactoring at a time.
REAL PYTHON
How to Do a Binary Search in Python
Use the bisect module to do a binary search in Python, then implement this classic algorithm yourself, both iteratively and recursively.
REAL PYTHON
Build and Deploy Python Inside Snowflake
Take Python workflows from development to deployment without leaving Snowflake. With the Posit Team Native App, develop, deploy, and govern with integrated AI assistance inside Snowflake’s security boundary. No data movement. No separate infrastructure. Start your free 30-day trial.
POSIT sponsor
Django Race Conditions: Unique Constraints
The first in a series on Django race conditions: how to handle unique constraints in your forms so users don’t get a 500 response.
TIM SCHILLING
Black Friday Giveaway: Win 3 Years of Real Python
Enter for a chance to win three years of Real Python plus all four Real Python books, or one of the runner-up prizes: 50% off an annual membership or 30% off the Python book bundle. It’s free to enter with a Real Python account, and entries close Friday, November 27 at 11:59 pm PT.
REAL PYTHON
Articles & Tutorials
How to Find and Fix N+1 Queries in Django
N+1 queries are one of those Django performance problems that can hide in plain sight. A page might look fine with five rows in development and then suddenly make hundreds of database queries in production. This tutorial shows you how to find and fix these kinds of queries.
CODE WITH STEIN
The Rise and Fall of Python’s Benevolent Dictator
This article describes the journey of Guido van Rossum who wrote Python over a 1989 Christmas break. By 2018 it ran AI and the web, and a fight over the walrus operator (PEP 572) drove him to resign.
BRUCE LI
Python’s Experimental JIT to Be Removed
You may have already seen the news that the JIT is being removed from the main branch of CPython. This article covers the details and the history behind the decision.
JOE BROCKMEIER
How the Python Ecosystem Responded to the eMudhra Intermediate Compromise
In October there was a compromise to a Certificate Authority. This post talks about how the PSF and other parts of the Python community addressed the issue.
PYTHON SOFTWARE FOUNDATION
Nuitka: Compile Python Into a Standalone Executable
Learn to compile Python into a standalone executable with Nuitka. Compare standalone and onefile builds, test speed, and see when PyInstaller fits better.
REAL PYTHON
Scientific Python: Using SciPy for Optimization
Learn how the SciPy ecosystem differs from the SciPy library, then install SciPy and use its clustering and optimization modules in Python.
REAL PYTHON
Faster CI With Orchestrated pytest Workers
How a shared test queue and interruptible workers let the people at Close add cheaper parallelism to Python Continuous Integration.
ALEC ROSENBAUM
How to Set Up a Python Project for Agentic Coding
Learn how to set up a Python project for agentic coding, with the tests, types, and hooks that give AI coding agents fast feedback.
REAL PYTHON
funkycache: A Python Library to Cache Functions in SQLite
This post describes funkycache, a new SQLite-backed caching library. It describes why Alex wrote it and how it works.
ALEX CHAN
Stricter Checks for Uploaded Distributions on PyPI
PyPI has added new checks that can reject uploaded source distributions to provide more package security.
WILLIAM WOODRUFF
Projects & Code
pytest-glow-report: HTML and JSON Reports for pytest
GITHUB.COM/GODHIRAJ-CODE • Shared by Dhiraj Das
fastapi-restly: REST With FastAPI and SQLAlchemy
GITHUB.COM/RJPRINS • Shared by Rutger Prins
Events
Weekly Real Python Office Hours Q&A (Virtual)
November 25, 2026
REALPYTHON.COM
Python E-Commerce Forum
November 26 to November 29, 2026
CODEHUT.CO.UK
Build a Multi-Agent Travel Assistant With Google ADK
November 26, 2026
MEETUP.COM
PyDelhi User Group Meetup
November 28, 2026
MEETUP.COM
PyLadies Asia Conference 2026
November 29 to November 30, 2026
PYLADIES.KR
Happy Pythoning!
This was PyCoder’s Weekly Issue #762.
View in Browser »
[ Subscribe to 🐍 PyCoder’s Weekly 💌 – Get the best Python news, articles, and tutorials delivered to your inbox once a week >> Click here to learn more ]
November 24, 2026 07:30 PM UTC
Trey Hunner
Python Black Friday & Cyber Monday sales (2026)
It’s time for some discounted Python-related skill-building. This is my ninth annual compilation of Python learning-related Black Friday & Cyber Monday deals. If you find a Python-related deal in the next week that isn’t on this list, please contact me and I’ll add it.
Python-related sales
Black Friday is Friday November 27, but some Python-related sales are already live:
- Python Morsels: I’m selling lifetime access until Monday November 30 (more details below)
- Talk Python: the Everything Bundle of all 54 courses (plus anything released before October 2027) for $240 instead of $299, a new Getting Started with Python & Programming in the Age of AI bundle of 4 courses for $65 instead of $156, and 25% off Michael’s Talk Python in Production book, no code needed (all through 8am Pacific on Wednesday December 2)
- Data School: a subscription to access all of Kevin’s 8 courses (and book) plus all upcoming courses, for $99 instead of $129 (November 23 to 30)
- Reuven Lerner: $150 off your first year of LernerPython+data ($350 instead of $500, code
bf2026), 30% off a year of Bamboo Weekly ($70 instead of $100), and 50% off audits of AI-built Python code from his new Vibe to Valid service (all through December 1) - Brian Okken: 40% off The Complete pytest Course bundle (code
BLACKFRIDAY), through Friday December 4 - Mike Driscoll: 35% off his Python books on Gumroad (code
Black2026) - Wizard Zines: Julia Evans’ great zines on various tech topics are on sale for 24 hours starting 12:01am Eastern on Friday November 27: 50% off PDF zines and 30% off print zines, no code needed (not Python-related, but one of my favorite annual sales)
I’ll keep updating this post as I hear about more sales. If you’ve seen a sale that I haven’t, please contact me.
Django-related sales
Adam Johnson has also published a list of Django-related deals for Black Friday. I’ve included links below to the different sections in Adam’s post.
- Adam’s books: his books on Django, Git, GitHub DX, and Django test performance are all 50% off ($22 instead of $44), and the bundles are 50% off too, through Cyber Monday (November 30)
- Aidas Bendoraitis’ packages: 50% off his 3 paid Django packages
- SaaS Pegasus: the unlimited license for this configurable Django project template is $299 instead of $649
More on my sale: Python Morsels Lifetime Access
Python Morsels is a hands-on, exercise-driven Python skill-building platform designed to help developers write cleaner, more idiomatic Python through real-world practice. This growing library of exercises, screencasts, courses, and (new this year) Daily Recall questions is aimed primarily at intermediate and professional developers. If you haven’t used Python Morsels, you can read about it in my sale announcement post.
This Black Friday / Cyber Monday, I’m offering lifetime access: all current and future content for a single payment of $649. That’s less than three years of a $240 annual subscription.
Not sure whether Python Morsels is for you? There’s a 7-day free trial that includes everything. Just decide before the sale ends on Monday November 30.
Get lifetime access to Python Morsels
November 24, 2026 05:00 PM UTC
LernerPython blog, from Reuven Lerner
The end of enterprise software — or, a world of custom solutions
Let’s say you need a new shirt. In 2026, you have so many options for buying that shirt. You can shop online. You can (horrors!) go into a physical store. You can go to a vintage (aka “used”) clothing store.

But go back 100 years, and it was basically impossible for two people to have the same shirt. That’s because “buying a shirt” meant going to a tailor who took your measurements and created a one-of-a-kind shirt, custom-built for your measurements and preferences. You didn’t have to wonder if it would fit, or if you liked the color, or even what kinds of buttons were on the shirt, because you were designing it along with the tailor. The “size” of the shirt was whatever your personal measurements were, rather than generic “small,” “medium,” and “large.”
What happened? Why don’t we still buy custom-tailored clothing? Economies of scale. A tailor makes one item of clothing at a time, spending hours or days on each one. A clothes factory, by contrast, can produce many thousands of shirts each hour, making each shirt dramatically cheaper to make. So yes, some people buy custom-tailored clothing, but most of us buy clothes that were made in a factory, with thousands of identical items sold in hundreds of stores.
For the most part, this works well: We buy cheaper clothes, and many more of them. But you know very well that one company’s “large” is another company’s “medium.” And finding precisely what you want, in precisely the size and style you want, can often be a challenge.
Economies of scale — in software
Now consider software: For many years, all software was custom-written for whoever was going to use it. (And in fact, the people writing the software were often the people who would use it.) It did precisely what the users wanted, in the way that they wanted. But creating custom software for each user was, like tailored shirts, extremely expensive. There weren’t any economies of scale.
Today, of course, software is all about economies of scale. Just about any program you use, from an operating system to browser to word processor to video editor, is used by many millions of people. As such, it’s like a shirt that you’ve bought off of the rack — it fits, more or less. It’s the style you want, more or less. It does what you want, more or less.
Economies of scale also lead to other problems, such as feature bloat: You might not care about a particular feature, but someone else does. Over time, each of these “someone needs this” features results in programs that try to cater to every possible user, no matter what they’re trying to do.
In trying to satisfy everyone, including oodles of features, software not only becomes hard to use, but hard to navigate. I love the MacOS “help” menu that lets me search for a command; it allows me to find commands whose names I know, but that are buried beneath menus that I cannot remember on my own.
This is especially true with enterprise software. Ironically, such software can cost many millions of dollars to install and configure. But it never ceases to frustrate and annoy the users, who feel like idiots because they cannot find the functionality they want and need — including the things they need to do every day. I can’t even begin to count the number of companies I’ve visited whose staffers put sticky notes on their monitor with the recipe needed to do common tasks.
Things are changing, though. And the source of that change? AI.
Custom applications with AI
With AI, almost anyone can create an application. And not a generic application, but one that does precisely what you need, when you need it, in a way that feels natural to you. Instead of “one size fits all,” the way that clothing is sold, AI can produce custom-tailored software that leaves out the stuff you don’t need, and includes the stuff you do.
I say this not only as someone who teaches how to use AI to code, but also someone who uses it in this way: In just the last week, I’ve created three new software projects, each aimed at improving my work as a Python instructor and content creator. I’m swapping out bloated programs that require customization and integration, swapping in custom applications that do precisely what I want, in the way that I want. In some cases, I’ve kept these programs private. But in others (e.g., newsprint and course-setup), I’ve made them open source — because these programs aren’t core to my business, and why not share with others, if this matches their way of doing things?
I’ll add my usual caveat, namely that creating software with AI is problematic, and potentially even dangerous, without any coding experience and training. Which is why I stress best practices (e.g., version control, TDD, and mutation testing) in all of my agentic coding classes. But with such training and experience, you’ll quickly see numerous opportunities to improve your workflow, removing some of the frustrating and annoying enterprise software that you’ve been forced to use. You’ll spend more time working, and less time getting around the inherent limitations of economies of scale.
AI is causing a lot of stress and heartache, and I completely understand why. It’s a tough time, and no one is quite sure how things are going to land as AI becomes more powerful and more pervasive. But I’ve been thoroughly delighted to discover just how many problems I’ve been able to solve using AI, simply by creating custom programs that do things my way, rather than how a project manager or focus group decided would be best.
The post The end of enterprise software — or, a world of custom solutions appeared first on LernerPython.
November 24, 2026 02:24 PM UTC
Python Software Foundation
Reopening the PSF Grants Program with Twice-Yearly Funding Rounds
The Python Software Foundation (PSF) is excited to announce that the PSF Grants Program is reopening with a restructured schedule of two funding rounds per year. After the pause in 2025, and the special funding round held in 2026, the PSF is reopening the PSF Grants Program on an ongoing but restructured basis, with the budget reviewed annually. This approach aims to balance the sustainability of the program with our commitment to support the Python community through grants.
The PSF is also happy to announce the upcoming funding round with a budget capped at $125,000 USD with a similar scope as the special funding round. We will be accepting applications from December 14 - January 4, for Conferences and Workshops that are scheduled between May 1, 2027, and September 30, 2027. Details on the restructured program are below. More information about the upcoming round will be published next week.
Moving forward with twice-yearly funding rounds
The 2026 PSF Grants Program Funding Round was a success! The PSF is proud to have awarded 44 grants totaling approximately $60,000. The round also gave the Grants Work Group (GWG) and PSF staff the opportunity to explore the round-based process, in contrast to our old process of rolling applications, review, and awards. We received many questions and much feedback during the Grants Program Office Hour sessions and via email before and during the round. The most frequent question we received was “when will the next round of funding happen?”
While all the PSF could share at the time was that we hoped for the program to run on an ongoing basis, what we felt this question pointed to was the community’s call for reliability from the PSF Grants Program. The PSF wants to meet this call, both for the community’s sake and because reliability is one of the Program’s Guiding Principles. It also supports our Strategic Plan goal of fostering a thriving, connected global Python community. Based on that, we intend to run two funding rounds per year going forward, with the budget to be set in advance each year. That way, we can reliably offer grants to the community, and each round’s budget will determine how many grants we can award and at what size. We look forward to receiving community feedback so we can continue to improve the restructured PSF Grants Program as we move forward.
Round timing
In order to get on a schedule aligned with PSF staff capacity around other projects throughout the year, (such as PyCon US, elections, and our end-of-year fundraiser), the upcoming second funding round will cover a five-month eligibility period of May 2027 through September 2027, meaning events taking place within that window can apply. After that, each round will cover six months, October to March and April to September. Rounds 3 and 4 below set the schedule we expect to follow going forward, repeating each year. The table shows the previous round, the upcoming round, and our expectations for the rounds after that.
| Round | Applications Open | Decisions Communicated | Eligibility Period |
|---|---|---|---|
| Round 1 (completed) | August 3 - 24, 2026 | September 14 - 21, 2026 | December 1, 2026 - April 30, 2027 (5 months) |
| Round 2 (upcoming) | December 14 - January 4, 2027 | February 11 - 19, 2027 | May 1 - September 30 2027 (5 months) |
| Round 3 (anticipated) | May - June, 2027 | August 2027 | October 1, 2027 - March 31, 2028 (6 months) |
| Round 4 (anticipated) | November - Dec, 2027 | February 2028 | April 1 - September 30, 2028 (6 months) |
Note: The dates for the upcoming round are set. The dates for rounds 3, 4, and beyond are projected–that means that the application opening and decision dates may be adjusted based on Board, staff, and Grants Work Group capacity. We will not change the dates of the eligibility periods, however, in order to ensure we are covering the entire year of Python community events!
Questions or feedback?
The PSF expects questions and feedback about both the reopened Grants Program restructure as well as the upcoming funding round. Your feedback will help us improve during the process and for future rounds. There are multiple ways for you to reach out to us with your questions, feedback, and comments:
- Discuss forum thread
- Email grants@python.org
- PSF Grants Office Hour sessions (more info below)
This is big news! And, applications for the next round are opening soon. To help answer the community’s questions, we are holding supplemental PSF Grants Program Office Hours on the PSF Discord:
- December 15th at 1 PM UTC (this is our regular day/time!)
- December 22nd at 8PM UTC
Check out what times these are for you using this timezone converter. We welcome you to join us to ask questions, discuss the process, suggest ideas for future rounds, or anything else related to the PSF Grants Program.
Final Thoughts and Thanks
This is yet another big change for the PSF Grants Program. It has moved from rolling applications, to a pause, to a special funding round, and now to a restructured schedule. The hope is to keep this format going forward, though we expect small changes and adjustments from round to round.
Thank you to the Python community for your patience as we work to make the program more viable for the PSF over the long term. We are grateful for your understanding and generous support, through your actions, words, and donations. We could not fulfill our mission without the community, or without each individual championing the PSF’s work. The PSF is so very grateful to be in community with each and every one of you.
About the Python Software Foundation
The Python Software Foundation is a US non-profit whose mission is to promote, protect, and advance the Python programming language, and to support and facilitate the growth of a diverse and international community of Python programmers. The PSF supports the Python community using corporate sponsorships, grants, and donations. Are you interested in sponsoring or donating to the PSF so we can continue supporting Python and its community? Check out our sponsorship program, donate directly, or contact our team at sponsors@python.org!
November 24, 2026 10:45 AM UTC
LernerPython blog, from Reuven Lerner
Python tracebacks with Rich: Colorized output and local variables
Want your Python traceback to look nice? Use Rich:
from rich.traceback import install
install(show_locals=True)
Now your tracebacks will be colorized and highlighted, with local variables clearly displayed and set apart (thanks to show_locals=True).
The post Python tracebacks with Rich: Colorized output and local variables appeared first on LernerPython.





