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

Method identifiers

crates/vm/src/stdlib/_symtable.rs:196–204  ·  view source on GitHub ↗
(&self, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

194
195 #[pygetset]
196 fn identifiers(&self, vm: &VirtualMachine) -> PyResult<Vec<PyObjectRef>> {
197 let symbols = self
198 .symtable
199 .symbols
200 .keys()
201 .map(|s| vm.ctx.new_str(s.as_str()).into())
202 .collect();
203 Ok(symbols)
204 }
205
206 #[pygetset]
207 fn symbols(&self, vm: &VirtualMachine) -> PyResult<PyDictRef> {

Callers

nothing calls this directly

Calls 5

collectMethod · 0.80
mapMethod · 0.45
keysMethod · 0.45
new_strMethod · 0.45
as_strMethod · 0.45

Tested by

no test coverage detected