mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Add async for
This commit is contained in:
4 files changed
+122
-33
No files matched your search
@@ -278,6 +278,8 @@ pub enum Instruction {
|
||||
SetupAsyncWith {
|
||||
end: Label,
|
||||
},
|
||||
GetAIter,
|
||||
GetANext,
|
||||
}
|
||||
|
||||
use self::Instruction::*;
|
||||
@@ -315,6 +317,7 @@ pub enum ComparisonOperator {
|
||||
NotIn,
|
||||
Is,
|
||||
IsNot,
|
||||
ExceptionMatch,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
|
||||
@@ -558,6 +561,8 @@ impl Instruction {
|
||||
PopException => w!(PopException),
|
||||
Reverse { amount } => w!(Reverse, amount),
|
||||
GetAwaitable => w!(GetAwaitable),
|
||||
GetAIter => w!(GetAIter),
|
||||
GetANext => w!(GetANext),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user