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

Method co_varnames

crates/vm/src/builtins/code.rs:829–832  ·  view source on GitHub ↗
(&self, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

827
828 #[pygetset]
829 pub fn co_varnames(&self, vm: &VirtualMachine) -> PyTupleRef {
830 let varnames = self.code.varnames.iter().map(|s| s.to_object()).collect();
831 vm.ctx.new_tuple(varnames)
832 }
833
834 #[pygetset]
835 pub fn co_code(&self, vm: &VirtualMachine) -> crate::builtins::PyBytesRef {

Callers 1

offer_suggestionsFunction · 0.80

Calls 5

collectMethod · 0.80
mapMethod · 0.45
iterMethod · 0.45
to_objectMethod · 0.45
new_tupleMethod · 0.45

Tested by

no test coverage detected