mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
Add tuple unpacking optimization
This commit is contained in:
@@ -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