Skip to main content

COMPARE_OP_BOOL_MASK

Constant COMPARE_OP_BOOL_MASK 

Source
pub const COMPARE_OP_BOOL_MASK: u32 = _; // 16u32
Expand description

COMPARE_OP arg is (cmp_index << 5) | mask.

The low four bits are the CPython comparison mask used by specialized compare opcodes, and bit 4 requests bool-conversion of the compare result.