MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / not_iterable

Method not_iterable

compiler/src/modules/vm/builtins/sequence.rs:286–288  ·  view source on GitHub ↗

TypeError for a non-iterable operand.

(&self, o: Val)

Source from the content-addressed store, hash-verified

284
285 // TypeError for a non-iterable operand.
286 fn not_iterable(&self, o: Val) -> VmErr {
287 VmErr::TypeMsg(s!("'", str self.type_name(o), "' object is not iterable"))
288 }
289
290 /* Build an IterCursor so short-circuit builtins (e.g. `all(range(10**6))`) stop at the first hit instead of pre-materialising. TypeError on non-iterables. */
291 pub(in crate::modules::vm) fn iter_cursor(&self, o: Val) -> Result<IterCursor, VmErr> {

Callers 3

iter_cursorMethod · 0.80
extract_iterMethod · 0.80
iter_to_vec_generalMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected