(&mut self, nargs: u32)
| 6433 | } |
| 6434 | |
| 6435 | fn collect_keyword_args(&mut self, nargs: u32) -> FuncArgs { |
| 6436 | let kwarg_names = self |
| 6437 | .pop_value() |
| 6438 | .downcast::<PyTuple>() |
| 6439 | .expect("kwarg names should be tuple of strings"); |
| 6440 | let args = self.pop_multiple(nargs as usize); |
| 6441 | |
| 6442 | let kwarg_names = kwarg_names.as_slice().iter().map(|pyobj| { |
| 6443 | pyobj |
| 6444 | .downcast_ref::<PyUtf8Str>() |
| 6445 | .unwrap() |
| 6446 | .as_str() |
| 6447 | .to_owned() |
| 6448 | }); |
| 6449 | FuncArgs::with_kwargs_names(args, kwarg_names) |
| 6450 | } |
| 6451 | |
| 6452 | fn collect_ex_args(&mut self, vm: &VirtualMachine) -> PyResult<FuncArgs> { |
| 6453 | let kwargs_or_null = self.pop_value_opt(); |
no test coverage detected