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

Method is_internal_frame

crates/vm/src/frame.rs:1070–1075  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1068 }
1069
1070 pub fn is_internal_frame(&self) -> bool {
1071 let code = self.f_code();
1072 let filename = code.co_filename();
1073 let filename = filename.as_bytes();
1074 filename.find(b"importlib").is_some() && filename.find(b"_bootstrap").is_some()
1075 }
1076
1077 pub fn next_external_frame(&self, vm: &VirtualMachine) -> Option<FrameRef> {
1078 let mut frame = self.f_back(vm);

Callers 3

next_external_frameMethod · 0.80
setup_contextFunction · 0.80

Calls 4

f_codeMethod · 0.80
co_filenameMethod · 0.80
as_bytesMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected