Update del statement del [x] available

This commit is contained in:
Myeongseon Choi 2022-07-14 09:22:49 +09:00
parent f869bc8371
commit 0b331cc916

View file

@ -847,7 +847,7 @@ impl Compiler {
self.compile_expression(slice)?;
self.emit(Instruction::DeleteSubscript);
}
ast::ExprKind::Tuple { elts, .. } => {
ast::ExprKind::Tuple { elts, .. } | ast::ExprKind::List { elts, .. } => {
for element in elts {
self.compile_delete(element)?;
}