(cls: PyTypeRef, stop: ArgIndex, vm: &VirtualMachine)
| 228 | )] |
| 229 | impl PyRange { |
| 230 | fn new(cls: PyTypeRef, stop: ArgIndex, vm: &VirtualMachine) -> PyResult<PyRef<Self>> { |
| 231 | Self { |
| 232 | start: vm.ctx.new_pyref(0), |
| 233 | stop: stop.into(), |
| 234 | step: vm.ctx.new_pyref(1), |
| 235 | } |
| 236 | .into_ref_with_type(vm, cls) |
| 237 | } |
| 238 | |
| 239 | fn new_from( |
| 240 | cls: PyTypeRef, |
nothing calls this directly
no test coverage detected