MCPcopy Index your code
hub / github.com/RustPython/RustPython / values_vec

Method values_vec

crates/vm/src/builtins/dict.rs:136–138  ·  view source on GitHub ↗

Returns all values as a Vec, atomically under a single read lock. Thread-safe: prevents "dictionary changed size during iteration" errors.

(&self)

Source from the content-addressed store, hash-verified

134 /// Returns all values as a Vec, atomically under a single read lock.
135 /// Thread-safe: prevents "dictionary changed size during iteration" errors.
136 pub fn values_vec(&self) -> Vec<PyObjectRef> {
137 self.entries.values()
138 }
139
140 /// Returns all items as a Vec, atomically under a single read lock.
141 /// Thread-safe: prevents "dictionary changed size during iteration" errors.

Callers 1

extract_elements_withMethod · 0.80

Calls 1

valuesMethod · 0.45

Tested by

no test coverage detected