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

Method co_filename

crates/vm/src/builtins/code.rs:767–769  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

765
766 #[pygetset]
767 pub fn co_filename(&self) -> PyStrRef {
768 self.source_path().to_owned()
769 }
770
771 #[pygetset]
772 pub fn co_cellvars(&self, vm: &VirtualMachine) -> PyTupleRef {

Callers 2

is_internal_frameMethod · 0.80
is_filename_to_skipFunction · 0.80

Calls 2

to_ownedMethod · 0.45
source_pathMethod · 0.45

Tested by

no test coverage detected