Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ba69069

Browse filesBrowse files
committed
assume positional args stored as tuple in extended call
1 parent 76edab3 commit ba69069
Copy full SHA for ba69069

File tree

1 file changed

+4
-2
lines changed
Filter options

1 file changed

+4
-2
lines changed

‎vm/src/frame.rs

Copy file name to clipboardExpand all lines: vm/src/frame.rs
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1499,8 +1499,10 @@ impl ExecutingFrame<'_> {
14991499
} else {
15001500
IndexMap::new()
15011501
};
1502-
let args = self.pop_value();
1503-
let args = args.try_to_value(vm)?;
1502+
// SAFETY: trust compiler
1503+
let args = unsafe { self.pop_value().downcast_unchecked::<PyTuple>() }
1504+
.as_slice()
1505+
.to_vec();
15041506
Ok(FuncArgs { args, kwargs })
15051507
}
15061508

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.