We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 93eea7c + d042ab2 commit ec1d30bCopy full SHA for ec1d30b
vm/src/obj/objlist.rs
@@ -146,9 +146,8 @@ impl PyListRef {
146
147
fn iadd(self, other: PyObjectRef, vm: &VirtualMachine) -> PyResult {
148
if objtype::isinstance(&other, &vm.ctx.list_type()) {
149
- self.elements
150
- .borrow_mut()
151
- .extend_from_slice(&get_elements_list(&other));
+ let e = get_elements_list(&other).clone();
+ self.elements.borrow_mut().extend_from_slice(&e);
152
Ok(self.into_object())
153
} else {
154
Ok(vm.ctx.not_implemented())
0 commit comments