(exc: &Py<PyBaseException>, vm: &VirtualMachine)
| 283 | } |
| 284 | |
| 285 | pub fn is_gen_exit(exc: &Py<PyBaseException>, vm: &VirtualMachine) -> bool { |
| 286 | exc.fast_isinstance(vm.ctx.exceptions.generator_exit) |
| 287 | } |
| 288 | |
| 289 | /// Get an awaitable iterator from an object. |
| 290 | /// |