Returns all items as a Vec, atomically under a single read lock. Thread-safe: prevents "dictionary changed size during iteration" errors.
(&self)
| 140 | /// Returns all items as a Vec, atomically under a single read lock. |
| 141 | /// Thread-safe: prevents "dictionary changed size during iteration" errors. |
| 142 | pub fn items_vec(&self) -> Vec<(PyObjectRef, PyObjectRef)> { |
| 143 | self.entries.items() |
| 144 | } |
| 145 | |
| 146 | // Used in update and ior. |
| 147 | pub(crate) fn merge_object(&self, other: PyObjectRef, vm: &VirtualMachine) -> PyResult<()> { |
no test coverage detected