Skip to content

Commit a8a3cae

Browse files
committed
Remove slot_new for longrange_iterator.
1 parent 2309e59 commit a8a3cae

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

vm/src/builtins/range.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -515,11 +515,6 @@ impl PyValue for PyLongRangeIterator {
515515

516516
#[pyimpl(with(Constructor, IterNext))]
517517
impl PyLongRangeIterator {
518-
#[pyslot]
519-
fn slot_new(_cls: PyTypeRef, _args: FuncArgs, vm: &VirtualMachine) -> PyResult {
520-
Err(vm.new_type_error("cannot create 'longrange_iterator' instances".to_owned()))
521-
}
522-
523518
#[pymethod(magic)]
524519
fn length_hint(&self) -> BigInt {
525520
let index = BigInt::from(self.index.load());

0 commit comments

Comments
 (0)