mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Limit in-place specialization additions to exact sequence repetition
Assisted-by: OpenAI Codex:model identifier unavailable
This commit is contained in:
1 parent
72a6330b3c
commit
2002f530dc
1 file changed
+3
-1
@@ -10763,7 +10763,9 @@ impl ExecutingFrame<'_> {
|
||||
&& b.downcast_ref_if_exact::<PyFloat>(vm).is_some()
|
||||
{
|
||||
Some(Instruction::BinaryOpMultiplyFloat)
|
||||
} else if let Some(descr) = self.binary_op_extended_specialization(op, a, b, vm) {
|
||||
} else if (sequence_int_guard(a, b, vm) || int_sequence_guard(a, b, vm))
|
||||
&& let Some(descr) = self.binary_op_extended_specialization(op, a, b, vm)
|
||||
{
|
||||
cached_extend_descr = Some(descr);
|
||||
Some(Instruction::BinaryOpExtend)
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user