Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove __len__ pymethod
  • Loading branch information
youknowone committed Jan 1, 2026
commit 8ffe90e1a782bf953f3ec0d30fbd736a7a924c9d
1 change: 0 additions & 1 deletion crates/stdlib/src/array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1102,7 +1102,6 @@ mod array {
Ok(zelf)
}

#[pymethod]
pub(crate) fn __len__(&self) -> usize {
self.read().len()
}
Expand Down
1 change: 0 additions & 1 deletion crates/stdlib/src/contextvars.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,6 @@ mod _contextvars {
Ok(item.to_owned())
}

#[pymethod]
fn __len__(&self) -> usize {
self.borrow_vars().len()
}
Expand Down
1 change: 0 additions & 1 deletion crates/stdlib/src/mmap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,6 @@ mod mmap {
.into()
}

#[pymethod]
fn __len__(&self) -> usize {
self.size.load()
}
Expand Down
1 change: 0 additions & 1 deletion crates/vm/src/builtins/range.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,6 @@ impl PyRange {
)
}

#[pymethod]
fn __len__(&self) -> BigInt {
self.compute_length()
}
Expand Down