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

Method source_path

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

Source from the content-addressed store, hash-verified

417 }
418
419 pub fn source_path(&self) -> &'static PyStrInterned {
420 // SAFETY: always points to a valid &'static PyStrInterned (interned strings are never deallocated)
421 unsafe { &*self.source_path.load(Ordering::Relaxed) }
422 }
423
424 pub fn set_source_path(&self, new: &'static PyStrInterned) {
425 self.source_path.store(

Callers 12

write_traceback_entryFunction · 0.45
import_code_objFunction · 0.45
setup_contextFunction · 0.45
_fix_co_filenameFunction · 0.45
update_code_filenamesFunction · 0.45
text_encodingFunction · 0.45
serializeMethod · 0.45
co_filenameMethod · 0.45
replaceMethod · 0.45

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected