mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
Merge branch 'main' into fixstdinandcmd
This commit is contained in:
commit
6968839386
3 changed files with 6 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
Add missing terminator in certain cases when tracing in the new JIT compiler.
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue