mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Add tuple unpacking optimization
This commit is contained in:
3 files changed
+52
-30
No files matched your search
@@ -219,6 +219,9 @@ pub enum Instruction {
|
||||
spec: String,
|
||||
},
|
||||
PopException,
|
||||
Reverse {
|
||||
amount: usize,
|
||||
},
|
||||
}
|
||||
|
||||
use self::Instruction::*;
|
||||
@@ -438,6 +441,7 @@ impl Instruction {
|
||||
Unpack => w!(Unpack),
|
||||
FormatValue { spec, .. } => w!(FormatValue, spec), // TODO: write conversion
|
||||
PopException => w!(PopException),
|
||||
Reverse { amount } => w!(Reverse, amount),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user