Merge branch 'main' into fixstdinandcmd

This commit is contained in:
Denizhan Dakılır 2025-12-22 23:58:41 +03:00 committed by GitHub
commit 6968839386
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 3 deletions

View file

@ -46,8 +46,10 @@ Any object can be tested for truth value, for use in an :keyword:`if` or
By default, an object is considered true unless its class defines either a
:meth:`~object.__bool__` method that returns ``False`` or a
:meth:`~object.__len__` method that
returns zero, when called with the object. [1]_ Here are most of the built-in
objects considered false:
returns zero, when called with the object. [1]_ If one of the methods raises an
exception when called, the exception is propagated and the object does
not have a truth value (for example, :data:`NotImplemented`).
Here are most of the built-in objects considered false:
.. index::
single: None (Built-in object)

View file

@ -0,0 +1 @@
Add missing terminator in certain cases when tracing in the new JIT compiler.

View file

@ -710,7 +710,7 @@ _PyJit_translate_single_bytecode_to_trace(
}
if (!_tstate->jit_tracer_state.prev_state.dependencies_still_valid) {
goto done;
goto full;
}
// This happens when a recursive call happens that we can't trace. Such as Python -> C -> Python calls